home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Prog / A / add images.sit / Source_2.c < prev    next >
MacBinary  |  1989-06-22  |  19.9 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Source_2.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Jun 22 11:13:44 1989, modified Thu Jun 22 11:13:44 1989, creator Think C, type ASCII, 19606 bytes "Source_2.c" , at 0x4d16 406 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 6f 75 72 63 65 | 5f 32 2e 63 00 00 00 00 |..Source|_2.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 4c 96 00 | 00 01 96 a0 c6 b2 a8 a0 |.....L..|........|
|00000060| c6 b2 a8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ac b5 00 00 |........|........|
|00000080| 2f 2a 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |/* =====|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 0d 0d | 46 69 6c 65 3a 20 53 6f |======..|File: So|
|000000b0| 75 72 63 65 5f 32 2e 63 | 0d 46 75 6e 63 74 69 6f |urce_2.c|.Functio|
|000000c0| 6e 3a 20 48 61 6e 64 6c | 65 20 61 6c 6c 20 6f 70 |n: Handl|e all op|
|000000d0| 65 72 61 74 69 6f 6e 73 | 20 66 6f 72 20 74 68 69 |erations| for thi|
|000000e0| 73 20 77 69 6e 64 6f 77 | 0d 48 69 73 74 6f 72 79 |s window|.History|
|000000f0| 3a 20 34 2f 32 37 2f 38 | 39 20 4f 72 69 67 69 6e |: 4/27/8|9 Origin|
|00000100| 61 6c 20 62 79 20 50 72 | 6f 74 6f 74 79 70 65 72 |al by Pr|ototyper|
|00000110| 2e 0d 0d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |...=====|========|
|00000120| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000130| 3d 3d 3d 3d 20 2a 2f 0d | 0d 23 69 6e 63 6c 75 64 |==== */.|.#includ|
|00000140| 65 20 22 53 6f 75 72 63 | 65 5f 32 2e 68 22 0d 23 |e "Sourc|e_2.h".#|
|00000150| 69 6e 63 6c 75 64 65 20 | 22 70 69 78 5f 69 6f 2e |include |"pix_io.|
|00000160| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 3c 43 6f 6c |h".#incl|ude <Col|
|00000170| 6f 72 54 6f 6f 6c 62 6f | 78 2e 68 3e 0d 23 69 6e |orToolbo|x.h>.#in|
|00000180| 63 6c 75 64 65 20 3c 49 | 4d 35 70 72 6f 74 6f 73 |clude <I|M5protos|
|00000190| 2e 68 3e 0d 0d 65 78 74 | 65 72 6e 20 52 47 42 43 |.h>..ext|ern RGBC|
|000001a0| 6f 6c 6f 72 20 42 6c 61 | 63 6b 52 47 42 2c 20 77 |olor Bla|ckRGB, w|
|000001b0| 68 69 74 65 52 47 42 2c | 20 67 72 61 79 52 47 42 |hiteRGB,| grayRGB|
|000001c0| 3b 0d 65 78 74 65 72 6e | 20 73 68 6f 72 74 20 70 |;.extern| short p|
|000001d0| 69 78 5f 7a 6f 6f 6d 3b | 0d 65 78 74 65 72 6e 20 |ix_zoom;|.extern |
|000001e0| 73 68 6f 72 74 20 73 72 | 63 5f 63 68 61 6e 67 65 |short sr|c_change|
|000001f0| 64 3b 20 2f 2a 20 31 20 | 69 66 20 70 69 63 74 20 |d; /* 1 |if pict |
|00000200| 73 63 72 6f 6c 6c 65 64 | 20 6f 72 20 63 68 61 6e |scrolled| or chan|
|00000210| 67 65 64 2c 20 30 20 6f | 74 68 65 72 77 69 73 65 |ged, 0 o|therwise|
|00000220| 20 2a 2f 0d 0d 43 47 72 | 61 66 50 74 72 20 20 66 | */..CGr|afPtr f|
|00000230| 6c 6f 75 72 69 6e 65 5f | 62 6d 61 70 3b 0d 50 69 |lourine_|bmap;.Pi|
|00000240| 63 48 61 6e 64 6c 65 20 | 66 6c 6f 75 72 69 6e 65 |cHandle |flourine|
|00000250| 5f 70 69 63 3b 20 2f 2a | 20 68 61 6e 64 6c 65 20 |_pic; /*| handle |
|00000260| 74 6f 20 50 49 43 54 20 | 66 6f 72 20 73 6f 75 72 |to PICT |for sour|
|00000270| 63 65 20 31 20 2a 2f 0d | 52 65 63 74 20 66 6c 6f |ce 1 */.|Rect flo|
|00000280| 75 72 69 6e 65 5f 72 65 | 63 74 3b 0d 57 69 6e 64 |urine_re|ct;.Wind|
|00000290| 6f 77 50 74 72 20 66 6c | 6f 75 72 69 6e 65 5f 57 |owPtr fl|ourine_W|
|000002a0| 69 6e 64 6f 77 3b 09 2f | 2a 20 57 69 6e 64 6f 77 |indow;./|* Window|
|000002b0| 20 70 6f 69 6e 74 65 72 | 20 2d 2d 20 67 6c 6f 62 | pointer| -- glob|
|000002c0| 61 6c 20 76 61 72 69 61 | 62 6c 65 20 2a 2f 0d 0d |al varia|ble */..|
|000002d0| 73 68 6f 72 74 20 73 32 | 5f 6f 66 66 5f 74 6f 70 |short s2|_off_top|
|000002e0| 2c 20 73 32 5f 6f 66 66 | 5f 6c 65 66 74 3b 09 2f |, s2_off|_left;./|
|000002f0| 2a 20 6f 66 66 73 65 74 | 73 20 6f 6e 20 74 68 65 |* offset|s on the|
|00000300| 20 77 69 6e 64 6f 77 20 | 66 72 6f 6d 20 73 63 72 | window |from scr|
|00000310| 6f 6c 6c 69 6e 67 20 2a | 2f 0d 73 74 61 74 69 63 |olling *|/.static|
|00000320| 20 53 74 72 32 35 35 20 | 66 69 6c 65 6e 61 6d 65 | Str255 |filename|
|00000330| 3b 20 2f 2a 20 6c 6f 63 | 61 6c 20 2d 20 69 6d 61 |; /* loc|al - ima|
|00000340| 67 65 20 66 69 6c 65 2c | 20 69 66 20 61 6e 79 2c |ge file,| if any,|
|00000350| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00000360| 20 74 68 69 73 20 77 69 | 6e 64 6f 77 20 2a 2f 0d | this wi|ndow */.|
|00000370| 0d 73 74 61 74 69 63 20 | 76 6f 69 64 20 64 72 61 |.static |void dra|
|00000380| 77 5f 66 6c 6f 75 72 69 | 6e 65 28 20 76 6f 69 64 |w_flouri|ne( void|
|00000390| 20 29 3b 0d 0d 73 74 61 | 74 69 63 20 76 6f 69 64 | );..sta|tic void|
|000003a0| 20 48 61 6e 64 6c 65 56 | 53 63 72 6f 6c 6c 42 61 | HandleV|ScrollBa|
|000003b0| 72 20 28 73 68 6f 72 74 | 20 63 6f 64 65 2c 20 73 |r (short| code, s|
|000003c0| 68 6f 72 74 20 53 74 61 | 72 74 2c 20 73 68 6f 72 |hort Sta|rt, shor|
|000003d0| 74 20 53 74 6f 70 2c 0d | 09 09 09 09 09 09 09 20 |t Stop,.|....... |
|000003e0| 20 73 68 6f 72 74 20 49 | 6e 63 72 65 6d 65 6e 74 | short I|ncrement|
|000003f0| 2c 20 73 68 6f 72 74 20 | 4c 49 6e 63 72 65 6d 65 |, short |LIncreme|
|00000400| 6e 74 2c 0d 09 09 09 09 | 09 09 09 20 20 43 6f 6e |nt,.....|... Con|
|00000410| 74 72 6f 6c 48 61 6e 64 | 6c 65 20 74 68 65 43 6f |trolHand|le theCo|
|00000420| 6e 74 72 6f 6c 2c 20 50 | 6f 69 6e 74 20 6d 79 50 |ntrol, P|oint myP|
|00000430| 74 29 3b 0d 0d 73 74 61 | 74 69 63 20 76 6f 69 64 |t);..sta|tic void|
|00000440| 20 48 61 6e 64 6c 65 48 | 53 63 72 6f 6c 6c 42 61 | HandleH|ScrollBa|
|00000450| 72 20 28 73 68 6f 72 74 | 20 63 6f 64 65 2c 20 73 |r (short| code, s|
|00000460| 68 6f 72 74 20 53 74 61 | 72 74 2c 20 73 68 6f 72 |hort Sta|rt, shor|
|00000470| 74 20 53 74 6f 70 2c 0d | 09 09 09 09 09 09 09 20 |t Stop,.|....... |
|00000480| 20 73 68 6f 72 74 20 49 | 6e 63 72 65 6d 65 6e 74 | short I|ncrement|
|00000490| 2c 20 73 68 6f 72 74 20 | 4c 49 6e 63 72 65 6d 65 |, short |LIncreme|
|000004a0| 6e 74 2c 0d 09 09 09 09 | 09 09 09 20 20 43 6f 6e |nt,.....|... Con|
|000004b0| 74 72 6f 6c 48 61 6e 64 | 6c 65 20 74 68 65 43 6f |trolHand|le theCo|
|000004c0| 6e 74 72 6f 6c 2c 20 50 | 6f 69 6e 74 20 6d 79 50 |ntrol, P|oint myP|
|000004d0| 74 29 3b 0d 0d 73 74 61 | 74 69 63 20 76 6f 69 64 |t);..sta|tic void|
|000004e0| 20 44 6f 5f 41 5f 53 63 | 72 6f 6c 6c 42 61 72 20 | Do_A_Sc|rollBar |
|000004f0| 28 73 68 6f 72 74 20 63 | 6f 64 65 2c 20 43 6f 6e |(short c|ode, Con|
|00000500| 74 72 6f 6c 48 61 6e 64 | 6c 65 20 74 68 65 43 6f |trolHand|le theCo|
|00000510| 6e 74 72 6f 6c 2c 20 50 | 6f 69 6e 74 20 6d 79 50 |ntrol, P|oint myP|
|00000520| 74 29 3b 0d 0d 0d 0d 2f | 2a 20 2a 2a 2a 2a 2a 2a |t);..../|* ******|
|00000530| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000540| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 20 2a 2f |********|***** */|
|00000550| 0d 2f 2a 20 54 68 65 73 | 65 20 61 72 65 20 74 68 |./* Thes|e are th|
|00000560| 65 20 6f 74 68 65 72 20 | 69 6e 63 6c 75 64 65 73 |e other |includes|
|00000570| 20 66 6f 72 20 67 65 6e | 65 72 61 6c 20 72 6f 75 | for gen|eral rou|
|00000580| 74 69 6e 65 73 20 2a 2f | 0d 0d 23 69 6e 63 6c 75 |tines */|..#inclu|
|00000590| 64 65 20 22 53 74 72 69 | 6e 67 73 2e 68 22 0d 65 |de "Stri|ngs.h".e|
|000005a0| 78 74 65 72 6e 20 63 68 | 61 72 20 2a 73 74 72 63 |xtern ch|ar *strc|
|000005b0| 70 79 20 28 53 74 72 32 | 35 35 20 2a 2c 20 63 68 |py (Str2|55 *, ch|
|000005c0| 61 72 20 2a 29 3b 09 2f | 2a 20 4c 53 43 20 73 74 |ar *);./|* LSC st|
|000005d0| 72 69 6e 67 20 70 72 6f | 74 6f 74 79 70 65 20 2a |ring pro|totype *|
|000005e0| 2f 0d 0d 2f 2a 20 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/../* **|********|
|000005f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000600| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 20 2a 2f 0d 0d 23 64 |********|* */..#d|
|00000610| 65 66 69 6e 65 20 20 20 | 20 20 20 54 52 55 45 20 |efine | TRUE |
|00000620| 20 20 31 0d 23 64 65 66 | 69 6e 65 20 20 20 20 20 | 1.#def|ine |
|00000630| 20 46 41 4c 53 45 20 20 | 30 0d 23 64 65 66 69 6e | FALSE |0.#defin|
|00000640| 65 20 20 20 20 20 20 4e | 49 4c 20 20 20 20 30 0d |e N|IL 0.|
|00000650| 0d 2f 2a 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |./* ****|********|
|00000660| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000670| 2a 2a 2a 2a 2a 2a 2a 20 | 2a 2f 0d 0d 0d 0d 0d 2f |******* |*/...../|
|00000680| 2a 20 53 63 72 6f 6c 6c | 62 61 72 20 49 44 20 2a |* Scroll|bar ID *|
|00000690| 2f 0d 23 64 65 66 69 6e | 65 09 49 5f 48 6f 72 69 |/.#defin|e.I_Hori|
|000006a0| 7a 5f 53 63 72 6f 6c 6c | 5f 62 61 72 20 09 32 37 |z_Scroll|_bar .27|
|000006b0| 0d 2f 2a 20 53 63 72 6f | 6c 6c 62 61 72 20 49 44 |./* Scro|llbar ID|
|000006c0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 49 5f 56 65 | */.#def|ine.I_Ve|
|000006d0| 72 74 5f 53 63 72 6f 6c | 6c 5f 62 61 72 20 09 32 |rt_Scrol|l_bar .2|
|000006e0| 36 0d 0d 73 74 61 74 69 | 63 20 43 6f 6e 74 72 6f |6..stati|c Contro|
|000006f0| 6c 48 61 6e 64 6c 65 20 | 43 74 72 6c 48 61 6e 64 |lHandle |CtrlHand|
|00000700| 6c 65 3b 09 2f 2a 20 43 | 6f 6e 74 72 6f 6c 20 68 |le;./* C|ontrol h|
|00000710| 61 6e 64 6c 65 20 2a 2f | 0d 73 74 61 74 69 63 20 |andle */|.static |
|00000720| 43 6f 6e 74 72 6f 6c 48 | 61 6e 64 6c 65 20 53 63 |ControlH|andle Sc|
|00000730| 72 6f 6c 6c 48 48 61 6e | 64 6c 65 2c 20 53 63 72 |rollHHan|dle, Scr|
|00000740| 6f 6c 6c 56 48 61 6e 64 | 6c 65 3b 09 2f 2a 20 53 |ollVHand|le;./* S|
|00000750| 63 72 6f 6c 6c 69 6e 67 | 20 43 6f 6e 74 72 6f 6c |crolling| Control|
|00000760| 2a 2f 0d 73 74 61 74 69 | 63 20 53 74 72 32 35 35 |*/.stati|c Str255|
|00000770| 20 73 54 65 6d 70 3b 09 | 09 2f 2a 20 47 65 74 20 | sTemp;.|./* Get |
|00000780| 74 65 78 74 20 65 6e 74 | 65 72 65 64 2c 20 74 65 |text ent|ered, te|
|00000790| 6d 70 20 68 6f 6c 64 69 | 6e 67 20 2a 2f 0d 73 74 |mp holdi|ng */.st|
|000007a0| 61 74 69 63 20 4f 53 45 | 72 72 20 4d 79 45 72 72 |atic OSE|rr MyErr|
|000007b0| 3b 09 09 09 2f 2a 20 47 | 65 6e 65 72 61 6c 20 4f |;.../* G|eneral O|
|000007c0| 53 20 65 72 72 6f 72 20 | 72 65 74 75 72 6e 20 2a |S error |return *|
|000007d0| 2f 0d 73 74 61 74 69 63 | 20 43 6f 6e 74 72 6f 6c |/.static| Control|
|000007e0| 48 61 6e 64 6c 65 20 43 | 5f 48 6f 72 69 7a 5f 53 |Handle C|_Horiz_S|
|000007f0| 63 72 6f 6c 6c 5f 62 61 | 72 3b 09 2f 2a 20 53 63 |croll_ba|r;./* Sc|
|00000800| 72 6f 6c 6c 20 62 61 72 | 20 20 43 6f 6e 74 72 6f |roll bar| Contro|
|00000810| 6c 20 48 61 6e 64 6c 2a | 2f 0d 73 74 61 74 69 63 |l Handl*|/.static|
|00000820| 20 43 6f 6e 74 72 6f 6c | 48 61 6e 64 6c 65 20 43 | Control|Handle C|
|00000830| 5f 56 65 72 74 5f 53 63 | 72 6f 6c 6c 5f 62 61 72 |_Vert_Sc|roll_bar|
|00000840| 3b 09 2f 2a 20 53 63 72 | 6f 6c 6c 20 62 61 72 20 |;./* Scr|oll bar |
|00000850| 20 43 6f 6e 74 72 6f 6c | 20 48 61 6e 64 6c 65 20 | Control| Handle |
|00000860| 2a 2f 0d 0d 2f 2a 20 3d | 3d 3d 3d 3d 3d 3d 3d 3d |*/../* =|========|
|00000870| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000880| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 20 2a 2f |========|===== */|
|00000890| 0d 0d 2f 2a 20 49 6e 69 | 74 69 61 6c 69 7a 65 20 |../* Ini|tialize |
|000008a0| 75 73 20 73 6f 20 61 6c | 6c 20 6f 75 72 20 72 6f |us so al|l our ro|
|000008b0| 75 74 69 6e 65 73 20 63 | 61 6e 20 62 65 20 61 63 |utines c|an be ac|
|000008c0| 74 69 76 61 74 65 64 20 | 2a 2f 0d 76 6f 69 64 20 |tivated |*/.void |
|000008d0| 49 6e 69 74 5f 66 6c 6f | 75 72 69 6e 65 20 28 29 |Init_flo|urine ()|
|000008e0| 0d 7b 0d 09 66 6c 6f 75 | 72 69 6e 65 5f 57 69 6e |.{..flou|rine_Win|
|000008f0| 64 6f 77 20 3d 20 4e 49 | 4c 3b 09 09 09 2f 2a 20 |dow = NI|L;.../* |
|00000900| 4d 61 6b 65 20 73 75 72 | 65 20 6f 74 68 65 72 20 |Make sur|e other |
|00000910| 72 6f 75 74 69 6e 65 73 | 20 6b 6e 6f 77 20 77 65 |routines| know we|
|00000920| 20 61 72 65 20 6e 6f 74 | 20 2a 2f 0d 09 66 6c 6f | are not| */..flo|
|00000930| 75 72 69 6e 65 5f 72 65 | 63 74 2e 74 6f 70 20 3d |urine_re|ct.top =|
|00000940| 20 30 3b 0d 09 66 6c 6f | 75 72 69 6e 65 5f 72 65 | 0;..flo|urine_re|
|00000950| 63 74 2e 62 6f 74 74 6f | 6d 20 3d 20 61 6c 6c 5f |ct.botto|m = all_|
|00000960| 6d 79 5f 63 6f 6c 6f 72 | 73 3b 0d 09 66 6c 6f 75 |my_color|s;..flou|
|00000970| 72 69 6e 65 5f 72 65 63 | 74 2e 6c 65 66 74 20 3d |rine_rec|t.left =|
|00000980| 20 30 3b 0d 09 66 6c 6f | 75 72 69 6e 65 5f 72 65 | 0;..flo|urine_re|
|00000990| 63 74 2e 72 69 67 68 74 | 20 3d 20 33 30 30 3b 0d |ct.right| = 300;.|
|000009a0| 7d 0d 0d 2f 2a 20 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |}../* ==|========|
|000009b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000009c0| 3d 3d 3d 3d 3d 3d 3d 20 | 2a 2f 0d 0d 76 6f 69 64 |======= |*/..void|
|000009d0| 20 61 63 74 69 76 61 74 | 65 5f 66 6c 6f 75 72 69 | activat|e_flouri|
|000009e0| 6e 65 20 28 77 68 69 63 | 68 57 69 6e 64 6f 77 2c |ne (whic|hWindow,|
|000009f0| 20 6d 6f 64 69 66 69 65 | 72 73 29 0d 09 57 69 6e | modifie|rs)..Win|
|00000a00| 64 6f 77 50 74 72 20 77 | 68 69 63 68 57 69 6e 64 |dowPtr w|hichWind|
|00000a10| 6f 77 3b 0d 09 6c 6f 6e | 67 20 6d 6f 64 69 66 69 |ow;..lon|g modifi|
|00000a20| 65 72 73 3b 0d 7b 0d 09 | 57 69 6e 64 6f 77 50 74 |ers;.{..|WindowPt|
|00000a30| 72 20 53 61 76 65 50 6f | 72 74 3b 0d 0d 09 47 65 |r SavePo|rt;...Ge|
|00000a40| 74 50 6f 72 74 20 28 26 | 53 61 76 65 50 6f 72 74 |tPort (&|SavePort|
|00000a50| 29 3b 0d 09 69 66 20 28 | 20 6d 6f 64 69 66 69 65 |);..if (| modifie|
|00000a60| 72 73 20 26 20 61 63 74 | 69 76 65 46 6c 61 67 20 |rs & act|iveFlag |
|00000a70| 21 3d 20 30 20 29 0d 09 | 7b 0d 09 09 53 65 6c 65 |!= 0 )..|{...Sele|
|00000a80| 63 74 57 69 6e 64 6f 77 | 28 77 68 69 63 68 57 69 |ctWindow|(whichWi|
|00000a90| 6e 64 6f 77 29 3b 0d 09 | 09 53 65 74 50 6f 72 74 |ndow);..|.SetPort|
|00000aa0| 28 77 68 69 63 68 57 69 | 6e 64 6f 77 29 3b 0d 09 |(whichWi|ndow);..|
|00000ab0| 09 53 68 6f 77 43 6f 6e | 74 72 6f 6c 20 28 53 63 |.ShowCon|trol (Sc|
|00000ac0| 72 6f 6c 6c 48 48 61 6e | 64 6c 65 29 3b 0d 09 09 |rollHHan|dle);...|
|00000ad0| 53 68 6f 77 43 6f 6e 74 | 72 6f 6c 20 28 53 63 72 |ShowCont|rol (Scr|
|00000ae0| 6f 6c 6c 56 48 61 6e 64 | 6c 65 29 3b 0d 09 09 44 |ollVHand|le);...D|
|00000af0| 72 61 77 47 72 6f 77 49 | 63 6f 6e 28 20 77 68 69 |rawGrowI|con( whi|
|00000b00| 63 68 57 69 6e 64 6f 77 | 20 29 3b 0d 09 09 44 72 |chWindow| );...Dr|
|00000b10| 61 77 43 6f 6e 74 72 6f | 6c 73 28 20 77 68 69 63 |awContro|ls( whic|
|00000b20| 68 57 69 6e 64 6f 77 20 | 29 3b 0d 09 7d 0d 09 65 |hWindow |);..}..e|
|00000b30| 6c 73 65 0d 09 7b 0d 09 | 09 53 65 74 50 6f 72 74 |lse..{..|.SetPort|
|00000b40| 28 77 68 69 63 68 57 69 | 6e 64 6f 77 29 3b 0d 09 |(whichWi|ndow);..|
|00000b50| 09 48 69 64 65 43 6f 6e | 74 72 6f 6c 20 28 53 63 |.HideCon|trol (Sc|
|00000b60| 72 6f 6c 6c 48 48 61 6e | 64 6c 65 29 3b 0d 09 09 |rollHHan|dle);...|
|00000b70| 48 69 64 65 43 6f 6e 74 | 72 6f 6c 20 28 53 63 72 |HideCont|rol (Scr|
|00000b80| 6f 6c 6c 56 48 61 6e 64 | 6c 65 29 3b 0d 09 09 44 |ollVHand|le);...D|
|00000b90| 72 61 77 47 72 6f 77 49 | 63 6f 6e 28 20 77 68 69 |rawGrowI|con( whi|
|00000ba0| 63 68 57 69 6e 64 6f 77 | 20 29 3b 0d 09 09 44 72 |chWindow| );...Dr|
|00000bb0| 61 77 43 6f 6e 74 72 6f | 6c 73 28 20 77 68 69 63 |awContro|ls( whic|
|00000bc0| 68 57 69 6e 64 6f 77 20 | 29 3b 0d 09 7d 0d 09 53 |hWindow |);..}..S|
|00000bd0| 65 74 50 6f 72 74 28 53 | 61 76 65 50 6f 72 74 29 |etPort(S|avePort)|
|00000be0| 3b 0d 7d 0d 0d 74 79 70 | 65 64 65 66 20 57 53 74 |;.}..typ|edef WSt|
|00000bf0| 61 74 65 44 61 74 61 20 | 2a 2a 57 53 74 61 74 65 |ateData |**WState|
|00000c00| 48 61 6e 64 6c 65 3b 0d | 0d 76 6f 69 64 20 7a 6f |Handle;.|.void zo|
|00000c10| 6f 6d 5f 66 6c 6f 75 72 | 69 6e 65 28 20 77 68 65 |om_flour|ine( whe|
|00000c20| 72 65 2c 20 77 68 69 63 | 68 57 69 6e 64 6f 77 2c |re, whic|hWindow,|
|00000c30| 20 63 6f 64 65 20 29 0d | 09 50 6f 69 6e 74 20 2a | code ).|.Point *|
|00000c40| 77 68 65 72 65 3b 0d 09 | 57 69 6e 64 6f 77 50 65 |where;..|WindowPe|
|00000c50| 65 6b 20 77 68 69 63 68 | 57 69 6e 64 6f 77 3b 0d |ek which|Window;.|
|00000c60| 09 73 68 6f 72 74 20 63 | 6f 64 65 3b 0d 7b 0d 09 |.short c|ode;.{..|
|00000c70| 50 6f 69 6e 74 20 6d 79 | 50 74 3b 0d 09 57 53 74 |Point my|Pt;..WSt|
|00000c80| 61 74 65 48 61 6e 64 6c | 65 20 57 53 74 61 74 65 |ateHandl|e WState|
|00000c90| 3b 0d 0d 09 53 65 74 50 | 6f 72 74 20 28 77 68 69 |;...SetP|ort (whi|
|00000ca0| 63 68 57 69 6e 64 6f 77 | 29 3b 0d 0d 09 69 66 20 |chWindow|);...if |
|00000cb0| 28 20 77 68 69 63 68 57 | 69 6e 64 6f 77 2d 3e 64 |( whichW|indow->d|
|00000cc0| 61 74 61 48 61 6e 64 6c | 65 20 21 3d 20 4e 49 4c |ataHandl|e != NIL|
|00000cd0| 20 29 0d 09 7b 0d 09 09 | 57 53 74 61 74 65 20 3d | )..{...|WState =|
|00000ce0| 20 28 57 53 74 61 74 65 | 48 61 6e 64 6c 65 29 20 | (WState|Handle) |
|00000cf0| 77 68 69 63 68 57 69 6e | 64 6f 77 2d 3e 64 61 74 |whichWin|dow->dat|
|00000d00| 61 48 61 6e 64 6c 65 3b | 0d 09 09 28 2a 2a 57 53 |aHandle;|...(**WS|
|00000d10| 74 61 74 65 29 2e 73 74 | 64 53 74 61 74 65 20 3d |tate).st|dState =|
|00000d20| 20 66 6c 6f 75 72 69 6e | 65 5f 72 65 63 74 3b 0d | flourin|e_rect;.|
|00000d30| 09 09 28 2a 2a 57 53 74 | 61 74 65 29 2e 73 74 64 |..(**WSt|ate).std|
|00000d40| 53 74 61 74 65 2e 74 6f | 70 20 2b 3d 20 34 30 3b |State.to|p += 40;|
|00000d50| 0d 09 09 28 2a 2a 57 53 | 74 61 74 65 29 2e 73 74 |...(**WS|tate).st|
|00000d60| 64 53 74 61 74 65 2e 6c | 65 66 74 20 2b 3d 20 32 |dState.l|eft += 2|
|00000d70| 3b 0d 09 09 28 2a 2a 57 | 53 74 61 74 65 29 2e 73 |;...(**W|State).s|
|00000d80| 74 64 53 74 61 74 65 2e | 72 69 67 68 74 20 2b 3d |tdState.|right +=|
|00000d90| 20 32 3b 0d 09 09 28 2a | 2a 57 53 74 61 74 65 29 | 2;...(*|*WState)|
|00000da0| 2e 73 74 64 53 74 61 74 | 65 2e 62 6f 74 74 6f 6d |.stdStat|e.bottom|
|00000db0| 20 2b 3d 20 34 30 3b 0d | 09 7d 0d 09 6d 79 50 74 | += 40;.|.}..myPt|
|00000dc0| 20 3d 20 2a 77 68 65 72 | 65 3b 09 2f 2a 20 47 65 | = *wher|e;./* Ge|
|00000dd0| 74 20 6d 6f 75 73 65 20 | 70 6f 73 69 74 69 6f 6e |t mouse |position|
|00000de0| 20 2a 2f 0d 09 47 6c 6f | 62 61 6c 54 6f 4c 6f 63 | */..Glo|balToLoc|
|00000df0| 61 6c 20 28 26 6d 79 50 | 74 29 3b 09 2f 2a 20 4d |al (&myP|t);./* M|
|00000e00| 61 6b 65 20 69 74 20 72 | 65 6c 61 74 69 76 65 20 |ake it r|elative |
|00000e10| 2a 2f 0d 0d 09 69 66 20 | 28 54 72 61 63 6b 42 6f |*/...if |(TrackBo|
|00000e20| 78 20 28 77 68 69 63 68 | 57 69 6e 64 6f 77 2c 20 |x (which|Window, |
|00000e30| 6d 79 50 74 2c 20 63 6f | 64 65 29 20 3d 3d 20 54 |myPt, co|de) == T|
|00000e40| 52 55 45 29 0d 09 7b 0d | 09 09 45 72 61 73 65 52 |RUE)..{.|..EraseR|
|00000e50| 65 63 74 28 20 26 77 68 | 69 63 68 57 69 6e 64 6f |ect( &wh|ichWindo|
|00000e60| 77 2d 3e 70 6f 72 74 2e | 70 6f 72 74 52 65 63 74 |w->port.|portRect|
|00000e70| 20 29 3b 0d 09 09 5a 6f | 6f 6d 57 69 6e 64 6f 77 | );...Zo|omWindow|
|00000e80| 20 28 77 68 69 63 68 57 | 69 6e 64 6f 77 2c 20 63 | (whichW|indow, c|
|00000e90| 6f 64 65 2c 20 54 52 55 | 45 29 3b 0d 09 09 49 6e |ode, TRU|E);...In|
|00000ea0| 76 61 6c 52 65 63 74 20 | 28 26 77 68 69 63 68 57 |valRect |(&whichW|
|00000eb0| 69 6e 64 6f 77 2d 3e 70 | 6f 72 74 2e 70 6f 72 74 |indow->p|ort.port|
|00000ec0| 52 65 63 74 29 3b 09 0d | 09 7d 0d 09 52 65 73 69 |Rect);..|.}..Resi|
|00000ed0| 7a 65 64 5f 66 6c 6f 75 | 72 69 6e 65 20 28 66 6c |zed_flou|rine (fl|
|00000ee0| 6f 75 72 69 6e 65 5f 57 | 69 6e 64 6f 77 29 3b 0d |ourine_W|indow);.|
|00000ef0| 7d 0d 0d 76 6f 69 64 20 | 67 72 6f 77 5f 66 6c 6f |}..void |grow_flo|
|00000f00| 75 72 69 6e 65 28 20 77 | 68 65 72 65 2c 20 77 68 |urine( w|here, wh|
|00000f10| 69 63 68 57 69 6e 64 6f | 77 20 29 0d 09 50 6f 69 |ichWindo|w )..Poi|
|00000f20| 6e 74 20 2a 77 68 65 72 | 65 3b 0d 09 57 69 6e 64 |nt *wher|e;..Wind|
|00000f30| 6f 77 50 74 72 20 77 68 | 69 63 68 57 69 6e 64 6f |owPtr wh|ichWindo|
|00000f40| 77 3b 0d 7b 0d 09 50 6f | 69 6e 74 20 6d 79 50 74 |w;.{..Po|int myPt|
|00000f50| 3b 0d 09 6c 6f 6e 67 20 | 6d 52 65 73 75 6c 74 3b |;..long |mResult;|
|00000f60| 0d 0d 09 53 65 74 50 6f | 72 74 20 28 77 68 69 63 |...SetPo|rt (whic|
|00000f70| 68 57 69 6e 64 6f 77 29 | 3b 0d 0d 09 6d 79 50 74 |hWindow)|;...myPt|
|00000f80| 20 3d 20 2a 77 68 65 72 | 65 3b 09 2f 2a 20 47 65 | = *wher|e;./* Ge|
|00000f90| 74 20 6d 6f 75 73 65 20 | 70 6f 73 69 74 69 6f 6e |t mouse |position|
|00000fa0| 20 2a 2f 0d 09 47 6c 6f | 62 61 6c 54 6f 4c 6f 63 | */..Glo|balToLoc|
|00000fb0| 61 6c 20 28 26 6d 79 50 | 74 29 3b 09 2f 2a 20 4d |al (&myP|t);./* M|
|00000fc0| 61 6b 65 20 69 74 20 72 | 65 6c 61 74 69 76 65 20 |ake it r|elative |
|00000fd0| 2a 2f 0d 0d 09 6d 52 65 | 73 75 6c 74 20 3d 20 47 |*/...mRe|sult = G|
|00000fe0| 72 6f 77 57 69 6e 64 6f | 77 20 28 77 68 69 63 68 |rowWindo|w (which|
|00000ff0| 57 69 6e 64 6f 77 2c 20 | 2a 77 68 65 72 65 2c 20 |Window, |*where, |
|00001000| 26 66 6c 6f 75 72 69 6e | 65 5f 72 65 63 74 29 3b |&flourin|e_rect);|
|00001010| 0d 0d 09 53 69 7a 65 57 | 69 6e 64 6f 77 20 28 77 |...SizeW|indow (w|
|00001020| 68 69 63 68 57 69 6e 64 | 6f 77 2c 20 4c 6f 57 6f |hichWind|ow, LoWo|
|00001030| 72 64 20 28 6d 52 65 73 | 75 6c 74 29 2c 0d 09 09 |rd (mRes|ult),...|
|00001040| 09 09 48 69 57 6f 72 64 | 20 28 6d 52 65 73 75 6c |..HiWord| (mResul|
|00001050| 74 29 2c 20 54 52 55 45 | 29 3b 0d 09 52 65 73 69 |t), TRUE|);..Resi|
|00001060| 7a 65 64 5f 66 6c 6f 75 | 72 69 6e 65 20 28 66 6c |zed_flou|rine (fl|
|00001070| 6f 75 72 69 6e 65 5f 57 | 69 6e 64 6f 77 29 3b 0d |ourine_W|indow);.|
|00001080| 7d 0d 0d 2f 2a 20 57 65 | 20 77 65 72 65 20 72 65 |}../* We| were re|
|00001090| 73 69 7a 65 64 20 6f 72 | 20 7a 6f 6f 6d 65 64 2c |sized or| zoomed,|
|000010a0| 20 75 70 64 61 74 65 20 | 74 68 65 20 73 63 72 6f | update |the scro|
|000010b0| 6c 6c 69 6e 67 20 73 63 | 72 6f 6c 6c 62 61 72 73 |lling sc|rollbars|
|000010c0| 20 2a 2f 0d 76 6f 69 64 | 20 52 65 73 69 7a 65 64 | */.void| Resized|
|000010d0| 5f 66 6c 6f 75 72 69 6e | 65 20 28 77 68 69 63 68 |_flourin|e (which|
|000010e0| 57 69 6e 64 6f 77 29 2f | 2a 20 52 65 73 69 7a 65 |Window)/|* Resize|
|000010f0| 64 20 74 68 69 73 20 77 | 69 6e 64 6f 77 20 2a 2f |d this w|indow */|
|00001100| 0d 09 57 69 6e 64 6f 77 | 50 74 72 20 77 68 69 63 |..Window|Ptr whic|
|00001110| 68 57 69 6e 64 6f 77 3b | 09 09 2f 2a 20 57 69 6e |hWindow;|../* Win|
|00001120| 64 6f 77 20 74 68 61 74 | 20 77 61 73 20 72 65 73 |dow that| was res|
|00001130| 69 7a 65 64 20 2a 2f 0d | 7b 0d 09 57 69 6e 64 6f |ized */.|{..Windo|
|00001140| 77 50 74 72 20 53 61 76 | 65 50 6f 72 74 3b 09 09 |wPtr Sav|ePort;..|
|00001150| 2f 2a 20 50 6c 61 63 65 | 20 74 6f 20 73 61 76 65 |/* Place| to save|
|00001160| 20 74 68 65 20 6c 61 73 | 74 20 70 6f 72 74 20 2a | the las|t port *|
|00001170| 2f 0d 0d 09 47 65 74 50 | 6f 72 74 20 28 26 53 61 |/...GetP|ort (&Sa|
|00001180| 76 65 50 6f 72 74 29 3b | 0d 09 53 65 74 50 6f 72 |vePort);|..SetPor|
|00001190| 74 20 28 66 6c 6f 75 72 | 69 6e 65 5f 57 69 6e 64 |t (flour|ine_Wind|
|000011a0| 6f 77 29 3b 0d 0d 09 69 | 66 20 28 53 63 72 6f 6c |ow);...i|f (Scrol|
|000011b0| 6c 48 48 61 6e 64 6c 65 | 20 21 3d 20 4e 49 4c 29 |lHHandle| != NIL)|
|000011c0| 0d 09 7b 0d 09 09 48 4c | 6f 63 6b 20 28 28 48 61 |..{...HL|ock ((Ha|
|000011d0| 6e 64 6c 65 29 53 63 72 | 6f 6c 6c 48 48 61 6e 64 |ndle)Scr|ollHHand|
|000011e0| 6c 65 29 3b 0d 09 09 48 | 69 64 65 43 6f 6e 74 72 |le);...H|ideContr|
|000011f0| 6f 6c 20 28 53 63 72 6f | 6c 6c 48 48 61 6e 64 6c |ol (Scro|llHHandl|
|00001200| 65 29 3b 0d 0d 09 09 49 | 6e 76 61 6c 52 65 63 74 |e);....I|nvalRect|
|00001210| 20 28 26 28 2a 53 63 72 | 6f 6c 6c 48 48 61 6e 64 | (&(*Scr|ollHHand|
|00001220| 6c 65 29 2d 3e 63 6f 6e | 74 72 6c 52 65 63 74 29 |le)->con|trlRect)|
|00001230| 3b 09 2f 2a 20 46 6c 61 | 67 20 6f 6c 64 20 70 6f |;./* Fla|g old po|
|00001240| 73 69 74 69 6f 6e 20 66 | 6f 72 20 75 70 64 61 74 |sition f|or updat|
|00001250| 65 20 72 6f 75 74 2a 2f | 0d 0d 09 09 4d 6f 76 65 |e rout*/|....Move|
|00001260| 43 6f 6e 74 72 6f 6c 20 | 28 53 63 72 6f 6c 6c 48 |Control |(ScrollH|
|00001270| 48 61 6e 64 6c 65 2c 20 | 66 6c 6f 75 72 69 6e 65 |Handle, |flourine|
|00001280| 5f 57 69 6e 64 6f 77 2d | 3e 70 6f 72 74 52 65 63 |_Window-|>portRec|
|00001290| 74 2e 6c 65 66 74 2d 31 | 2c 0d 09 09 09 66 6c 6f |t.left-1|,....flo|
|000012a0| 75 72 69 6e 65 5f 57 69 | 6e 64 6f 77 2d 3e 70 6f |urine_Wi|ndow->po|
|000012b0| 72 74 52 65 63 74 2e 62 | 6f 74 74 6f 6d 20 2d 20 |rtRect.b|ottom - |
|000012c0| 31 35 29 3b 0d 09 09 53 | 69 7a 65 43 6f 6e 74 72 |15);...S|izeContr|
|000012d0| 6f 6c 20 28 53 63 72 6f | 6c 6c 48 48 61 6e 64 6c |ol (Scro|llHHandl|
|000012e0| 65 2c 20 28 66 6c 6f 75 | 72 69 6e 65 5f 57 69 6e |e, (flou|rine_Win|
|000012f0| 64 6f 77 2d 3e 70 6f 72 | 74 52 65 63 74 2e 72 69 |dow->por|tRect.ri|
|00001300| 67 68 74 20 0d 09 09 09 | 2d 20 66 6c 6f 75 72 69 |ght ....|- flouri|
|00001310| 6e 65 5f 57 69 6e 64 6f | 77 2d 3e 70 6f 72 74 52 |ne_Windo|w->portR|
|00001320| 65 63 74 2e 6c 65 66 74 | 29 20 2d 20 31 33 2c 20 |ect.left|) - 13, |
|00001330| 31 36 29 3b 0d 0d 09 09 | 53 68 6f 77 43 6f 6e 74 |16);....|ShowCont|
|00001340| 72 6f 6c 20 28 53 63 72 | 6f 6c 6c 48 48 61 6e 64 |rol (Scr|ollHHand|
|00001350| 6c 65 29 3b 0d 09 09 48 | 55 6e 6c 6f 63 6b 20 28 |le);...H|Unlock (|
|00001360| 28 48 61 6e 64 6c 65 29 | 53 63 72 6f 6c 6c 48 48 |(Handle)|ScrollHH|
|00001370| 61 6e 64 6c 65 29 3b 0d | 09 7d 0d 09 69 66 20 28 |andle);.|.}..if (|
|00001380| 53 63 72 6f 6c 6c 56 48 | 61 6e 64 6c 65 20 21 3d |ScrollVH|andle !=|
|00001390| 20 4e 49 4c 29 0d 09 7b | 0d 09 09 48 4c 6f 63 6b | NIL)..{|...HLock|
|000013a0| 20 28 28 48 61 6e 64 6c | 65 29 53 63 72 6f 6c 6c | ((Handl|e)Scroll|
|000013b0| 56 48 61 6e 64 6c 65 29 | 3b 0d 09 09 48 69 64 65 |VHandle)|;...Hide|
|000013c0| 43 6f 6e 74 72 6f 6c 20 | 28 53 63 72 6f 6c 6c 56 |Control |(ScrollV|
|000013d0| 48 61 6e 64 6c 65 29 3b | 0d 0d 09 09 49 6e 76 61 |Handle);|....Inva|
|000013e0| 6c 52 65 63 74 20 28 26 | 28 2a 53 63 72 6f 6c 6c |lRect (&|(*Scroll|
|000013f0| 56 48 61 6e 64 6c 65 29 | 2d 3e 63 6f 6e 74 72 6c |VHandle)|->contrl|
|00001400| 52 65 63 74 29 3b 09 2f | 2a 20 46 6c 61 67 20 6f |Rect);./|* Flag o|
|00001410| 6c 64 20 70 6f 73 69 74 | 69 6f 6e 20 66 6f 72 20 |ld posit|ion for |
|00001420| 75 70 64 61 74 65 20 72 | 6f 75 74 2a 2f 0d 0d 09 |update r|out*/...|
|00001430| 09 4d 6f 76 65 43 6f 6e | 74 72 6f 6c 20 28 53 63 |.MoveCon|trol (Sc|
|00001440| 72 6f 6c 6c 56 48 61 6e | 64 6c 65 2c 20 66 6c 6f |rollVHan|dle, flo|
|00001450| 75 72 69 6e 65 5f 57 69 | 6e 64 6f 77 2d 3e 70 6f |urine_Wi|ndow->po|
|00001460| 72 74 52 65 63 74 2e 72 | 69 67 68 74 2d 31 35 2c |rtRect.r|ight-15,|
|00001470| 0d 09 09 09 66 6c 6f 75 | 72 69 6e 65 5f 57 69 6e |....flou|rine_Win|
|00001480| 64 6f 77 2d 3e 70 6f 72 | 74 52 65 63 74 2e 74 6f |dow->por|tRect.to|
|00001490| 70 2d 31 29 3b 0d 09 09 | 53 69 7a 65 43 6f 6e 74 |p-1);...|SizeCont|
|000014a0| 72 6f 6c 20 28 53 63 72 | 6f 6c 6c 56 48 61 6e 64 |rol (Scr|ollVHand|
|000014b0| 6c 65 2c 20 31 36 2c 20 | 28 66 6c 6f 75 72 69 6e |le, 16, |(flourin|
|000014c0| 65 5f 57 69 6e 64 6f 77 | 2d 3e 70 6f 72 74 52 65 |e_Window|->portRe|
|000014d0| 63 74 2e 62 6f 74 74 6f | 6d 20 0d 09 09 09 2d 20 |ct.botto|m ....- |
|000014e0| 66 6c 6f 75 72 69 6e 65 | 5f 57 69 6e 64 6f 77 2d |flourine|_Window-|
|000014f0| 3e 70 6f 72 74 52 65 63 | 74 2e 74 6f 70 29 20 2d |>portRec|t.top) -|
|00001500| 20 31 33 29 3b 0d 0d 09 | 09 53 68 6f 77 43 6f 6e | 13);...|.ShowCon|
|00001510| 74 72 6f 6c 20 28 53 63 | 72 6f 6c 6c 56 48 61 6e |trol (Sc|rollVHan|
|00001520| 64 6c 65 29 3b 0d 09 09 | 48 55 6e 6c 6f 63 6b 20 |dle);...|HUnlock |
|00001530| 28 28 48 61 6e 64 6c 65 | 29 53 63 72 6f 6c 6c 56 |((Handle|)ScrollV|
|00001540| 48 61 6e 64 6c 65 29 3b | 0d 09 7d 0d 09 49 6e 76 |Handle);|..}..Inv|
|00001550| 61 6c 52 65 63 74 28 26 | 66 6c 6f 75 72 69 6e 65 |alRect(&|flourine|
|00001560| 5f 57 69 6e 64 6f 77 2d | 3e 70 6f 72 74 52 65 63 |_Window-|>portRec|
|00001570| 74 29 3b 0d 09 44 72 61 | 77 47 72 6f 77 49 63 6f |t);..Dra|wGrowIco|
|00001580| 6e 20 28 66 6c 6f 75 72 | 69 6e 65 5f 57 69 6e 64 |n (flour|ine_Wind|
|00001590| 6f 77 29 3b 09 0d 09 53 | 65 74 50 6f 72 74 20 28 |ow);...S|etPort (|
|000015a0| 53 61 76 65 50 6f 72 74 | 29 3b 0d 7d 0d 2f 2a 20 |SavePort|);.}./* |
|000015b0| 45 6e 64 20 6f 66 20 66 | 75 6e 63 74 69 6f 6e 20 |End of f|unction |
|000015c0| 2a 2f 0d 0d 2f 2a 20 3d | 3d 3d 3d 3d 3d 3d 3d 3d |*/../* =|========|
|000015d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000015e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 20 2a 2f |========|===== */|
|000015f0| 0d 0d 2f 2a 20 55 70 64 | 61 74 65 20 6f 75 72 20 |../* Upd|ate our |
|00001600| 77 69 6e 64 6f 77 2c 20 | 73 6f 6d 65 6f 6e 65 20 |window, |someone |
|00001610| 75 6e 63 6f 76 65 72 65 | 64 20 61 20 70 61 72 74 |uncovere|d a part|
|00001620| 20 6f 66 20 75 73 20 2a | 2f 0d 76 6f 69 64 20 55 | of us *|/.void U|
|00001630| 70 44 61 74 65 5f 66 6c | 6f 75 72 69 6e 65 20 28 |pDate_fl|ourine (|
|00001640| 77 68 69 63 68 57 69 6e | 64 6f 77 29 0d 57 69 6e |whichWin|dow).Win|
|00001650| 64 6f 77 50 74 72 20 77 | 68 69 63 68 57 69 6e 64 |dowPtr w|hichWind|
|00001660| 6f 77 3b 0d 7b 0d 09 57 | 69 6e 64 6f 77 50 74 72 |ow;.{..W|indowPtr|
|00001670| 20 53 61 76 65 50 6f 72 | 74 3b 09 09 2f 2a 20 50 | SavePor|t;../* P|
|00001680| 6c 61 63 65 20 74 6f 20 | 73 61 76 65 20 74 68 65 |lace to |save the|
|00001690| 20 6c 61 73 74 20 70 6f | 72 74 20 2a 2f 0d 0d 09 | last po|rt */...|
|000016a0| 47 65 74 50 6f 72 74 20 | 28 26 53 61 76 65 50 6f |GetPort |(&SavePo|
|000016b0| 72 74 29 3b 09 2f 2a 20 | 53 61 76 65 20 74 68 65 |rt);./* |Save the|
|000016c0| 20 63 75 72 72 65 6e 74 | 20 70 6f 72 74 20 2a 2f | current| port */|
|000016d0| 0d 09 53 65 74 50 6f 72 | 74 20 28 66 6c 6f 75 72 |..SetPor|t (flour|
|000016e0| 69 6e 65 5f 57 69 6e 64 | 6f 77 29 3b 09 2f 2a 20 |ine_Wind|ow);./* |
|000016f0| 53 65 74 20 74 68 65 20 | 70 6f 72 74 20 74 6f 20 |Set the |port to |
|00001700| 6d 79 20 77 69 6e 64 6f | 77 20 2a 2f 0d 09 0d 09 |my windo|w */....|
|00001710| 49 6e 76 61 6c 52 65 63 | 74 28 26 66 6c 6f 75 72 |InvalRec|t(&flour|
|00001720| 69 6e 65 5f 57 69 6e 64 | 6f 77 2d 3e 70 6f 72 74 |ine_Wind|ow->port|
|00001730| 52 65 63 74 29 3b 0d 0d | 09 42 65 67 69 6e 55 70 |Rect);..|.BeginUp|
|00001740| 64 61 74 65 28 20 66 6c | 6f 75 72 69 6e 65 5f 57 |date( fl|ourine_W|
|00001750| 69 6e 64 6f 77 20 29 3b | 0d 09 64 72 61 77 5f 66 |indow );|..draw_f|
|00001760| 6c 6f 75 72 69 6e 65 28 | 29 3b 0d 09 44 72 61 77 |lourine(|);..Draw|
|00001770| 43 6f 6e 74 72 6f 6c 73 | 20 28 66 6c 6f 75 72 69 |Controls| (flouri|
|00001780| 6e 65 5f 57 69 6e 64 6f | 77 29 3b 09 2f 2a 20 44 |ne_Windo|w);./* D|
|00001790| 72 61 77 20 61 6c 6c 20 | 74 68 65 20 63 6f 6e 74 |raw all |the cont|
|000017a0| 72 6f 6c 73 20 2a 2f 0d | 09 44 72 61 77 47 72 6f |rols */.|.DrawGro|
|000017b0| 77 49 63 6f 6e 20 28 66 | 6c 6f 75 72 69 6e 65 5f |wIcon (f|lourine_|
|000017c0| 57 69 6e 64 6f 77 29 3b | 09 2f 2a 20 44 72 61 77 |Window);|./* Draw|
|000017d0| 20 74 68 65 20 47 72 6f | 77 20 62 6f 78 20 2a 2f | the Gro|w box */|
|000017e0| 0d 09 45 6e 64 55 70 64 | 61 74 65 28 66 6c 6f 75 |..EndUpd|ate(flou|
|000017f0| 72 69 6e 65 5f 57 69 6e | 64 6f 77 29 3b 0d 09 53 |rine_Win|dow);..S|
|00001800| 65 74 50 6f 72 74 20 28 | 53 61 76 65 50 6f 72 74 |etPort (|SavePort|
|00001810| 29 3b 09 2f 2a 20 52 65 | 73 74 6f 72 65 20 74 68 |);./* Re|store th|
|00001820| 65 20 6f 6c 64 20 70 6f | 72 74 20 2a 2f 0d 7d 0d |e old po|rt */.}.|
|00001830| 0d 73 74 61 74 69 63 20 | 76 6f 69 64 20 64 72 61 |.static |void dra|
|00001840| 77 5f 66 6c 6f 75 72 69 | 6e 65 28 29 0d 7b 0d 09 |w_flouri|ne().{..|
|00001850| 52 65 63 74 20 63 6c 69 | 70 70 65 72 3b 0d 09 52 |Rect cli|pper;..R|
|00001860| 65 63 74 20 6f 66 66 72 | 65 63 74 3b 20 2f 2a 20 |ect offr|ect; /* |
|00001870| 63 6f 6f 72 64 73 20 69 | 6e 20 6f 66 66 73 63 72 |coords i|n offscr|
|00001880| 65 65 6e 20 62 69 74 6d | 61 70 20 2a 2f 0d 09 73 |een bitm|ap */..s|
|00001890| 68 6f 72 74 20 69 3b 0d | 09 0d 09 63 6c 69 70 70 |hort i;.|...clipp|
|000018a0| 65 72 2e 74 6f 70 20 3d | 20 66 6c 6f 75 72 69 6e |er.top =| flourin|
|000018b0| 65 5f 57 69 6e 64 6f 77 | 2d 3e 70 6f 72 74 52 65 |e_Window|->portRe|
|000018c0| 63 74 2e 74 6f 70 3b 0d | 09 63 6c 69 70 70 65 72 |ct.top;.|.clipper|
|000018d0| 2e 62 6f 74 74 6f 6d 20 | 3d 20 66 6c 6f 75 72 69 |.bottom |= flouri|
|000018e0| 6e 65 5f 57 69 6e 64 6f | 77 2d 3e 70 6f 72 74 52 |ne_Windo|w->portR|
|000018f0| 65 63 74 2e 62 6f 74 74 | 6f 6d 20 2d 20 31 35 3b |ect.bott|om - 15;|
|00001900| 0d 09 63 6c 69 70 70 65 | 72 2e 72 69 67 68 74 20 |..clippe|r.right |
|00001910| 3d 20 66 6c 6f 75 72 69 | 6e 65 5f 57 69 6e 64 6f |= flouri|ne_Windo|
|00001920| 77 2d 3e 70 6f 72 74 52 | 65 63 74 2e 72 69 67 68 |w->portR|ect.righ|
|00001930| 74 20 2d 20 31 35 3b 0d | 09 63 6c 69 70 70 65 72 |t - 15;.|.clipper|
|00001940| 2e 6c 65 66 74 20 3d 20 | 66 6c 6f 75 72 69 6e 65 |.left = |flourine|
|00001950| 5f 57 69 6e 64 6f 77 2d | 3e 70 6f 72 74 52 65 63 |_Window-|>portRec|
|00001960| 74 2e 6c 65 66 74 3b 0d | 09 0d 09 43 6c 69 70 52 |t.left;.|...ClipR|
|00001970| 65 63 74 28 20 26 63 6c | 69 70 70 65 72 20 29 3b |ect( &cl|ipper );|
|00001980| 0d 09 0d 09 45 72 61 73 | 65 52 65 63 74 28 20 26 |....Eras|eRect( &|
|00001990| 63 6c 69 70 70 65 72 20 | 29 3b 0d 09 69 66 20 28 |clipper |);..if (|
|000019a0| 20 73 32 5f 6f 66 66 5f | 74 6f 70 20 3c 20 66 6c | s2_off_|top < fl|
|000019b0| 6f 75 72 69 6e 65 5f 72 | 65 63 74 2e 62 6f 74 74 |ourine_r|ect.bott|
|000019c0| 6f 6d 20 26 26 0d 09 09 | 09 73 32 5f 6f 66 66 5f |om &&...|.s2_off_|
|000019d0| 6c 65 66 74 20 3c 20 66 | 6c 6f 75 72 69 6e 65 5f |left < f|lourine_|
|000019e0| 72 65 63 74 2e 72 69 67 | 68 74 20 29 0d 09 7b 0d |rect.rig|ht )..{.|
|000019f0| 09 09 69 66 20 28 20 66 | 6c 6f 75 72 69 6e 65 5f |..if ( f|lourine_|
|00001a00| 62 6d 61 70 20 21 3d 20 | 4e 49 4c 20 29 0d 09 09 |bmap != |NIL )...|
|00001a10| 7b 0d 09 09 09 6f 66 66 | 72 65 63 74 20 3d 20 63 |{....off|rect = c|
|00001a20| 6c 69 70 70 65 72 3b 0d | 09 09 09 6f 66 66 72 65 |lipper;.|...offre|
|00001a30| 63 74 2e 74 6f 70 20 2b | 3d 20 73 32 5f 6f 66 66 |ct.top +|= s2_off|
|00001a40| 5f 74 6f 70 3b 0d 09 09 | 09 6f 66 66 72 65 63 74 |_top;...|.offrect|
|00001a50| 2e 62 6f 74 74 6f 6d 20 | 2b 3d 20 73 32 5f 6f 66 |.bottom |+= s2_of|
|00001a60| 66 5f 74 6f 70 3b 0d 09 | 09 09 69 66 20 28 20 6f |f_top;..|..if ( o|
|00001a70| 66 66 72 65 63 74 2e 62 | 6f 74 74 6f 6d 20 3e 20 |ffrect.b|ottom > |
|00001a80| 66 6c 6f 75 72 69 6e 65 | 5f 72 65 63 74 2e 62 6f |flourine|_rect.bo|
|00001a90| 74 74 6f 6d 20 2b 20 73 | 32 5f 6f 66 66 5f 74 6f |ttom + s|2_off_to|
|00001aa0| 70 20 29 0d 09 09 09 7b | 0d 09 09 09 09 6f 66 66 |p )....{|.....off|
|00001ab0| 72 65 63 74 2e 62 6f 74 | 74 6f 6d 20 3d 20 66 6c |rect.bot|tom = fl|
|00001ac0| 6f 75 72 69 6e 65 5f 72 | 65 63 74 2e 62 6f 74 74 |ourine_r|ect.bott|
|00001ad0| 6f 6d 3b 0d 09 09 09 09 | 63 6c 69 70 70 65 72 2e |om;.....|clipper.|
|00001ae0| 62 6f 74 74 6f 6d 20 3d | 20 66 6c 6f 75 72 69 6e |bottom =| flourin|
|00001af0| 65 5f 72 65 63 74 2e 62 | 6f 74 74 6f 6d 20 2d 20 |e_rect.b|ottom - |
|00001b00| 73 32 5f 6f 66 66 5f 74 | 6f 70 3b 0d 09 09 09 7d |s2_off_t|op;....}|
|00001b10| 0d 09 09 09 6f 66 66 72 | 65 63 74 2e 6c 65 66 74 |....offr|ect.left|
|00001b20| 20 2b 3d 20 73 32 5f 6f | 66 66 5f 6c 65 66 74 3b | += s2_o|ff_left;|
|00001b30| 0d 09 09 09 6f 66 66 72 | 65 63 74 2e 72 69 67 68 |....offr|ect.righ|
|00001b40| 74 20 2b 3d 20 73 32 5f | 6f 66 66 5f 6c 65 66 74 |t += s2_|off_left|
|00001b50| 3b 0d 09 09 09 69 66 20 | 28 20 6f 66 66 72 65 63 |;....if |( offrec|
|00001b60| 74 2e 72 69 67 68 74 20 | 3e 20 66 6c 6f 75 72 69 |t.right |> flouri|
|00001b70| 6e 65 5f 72 65 63 74 2e | 72 69 67 68 74 20 2b 20 |ne_rect.|right + |
|00001b80| 73 32 5f 6f 66 66 5f 6c | 65 66 74 20 29 0d 09 09 |s2_off_l|eft )...|
|00001b90| 09 7b 0d 09 09 09 09 6f | 66 66 72 65 63 74 2e 72 |.{.....o|ffrect.r|
|00001ba0| 69 67 68 74 20 3d 20 66 | 6c 6f 75 72 69 6e 65 5f |ight = f|lourine_|
|00001bb0| 72 65 63 74 2e 72 69 67 | 68 74 3b 0d 09 09 09 09 |rect.rig|ht;.....|
|00001bc0| 63 6c 69 70 70 65 72 2e | 72 69 67 68 74 20 3d 20 |clipper.|right = |
|00001bd0| 66 6c 6f 75 72 69 6e 65 | 5f 72 65 63 74 2e 72 69 |flourine|_rect.ri|
|00001be0| 67 68 74 20 2d 20 73 32 | 5f 6f 66 66 5f 6c 65 66 |ght - s2|_off_lef|
|00001bf0| 74 3b 0d 09 09 09 7d 0d | 0d 09 09 09 48 4c 6f 63 |t;....}.|....HLoc|
|00001c00| 6b 28 28 48 61 6e 64 6c | 65 29 20 28 66 6c 6f 75 |k((Handl|e) (flou|
|00001c10| 72 69 6e 65 5f 62 6d 61 | 70 2d 3e 70 6f 72 74 50 |rine_bma|p->portP|
|00001c20| 69 78 4d 61 70 29 29 3b | 0d 09 09 09 43 6f 70 79 |ixMap));|....Copy|
|00001c30| 42 69 74 73 28 20 2a 28 | 66 6c 6f 75 72 69 6e 65 |Bits( *(|flourine|
|00001c40| 5f 62 6d 61 70 2d 3e 70 | 6f 72 74 50 69 78 4d 61 |_bmap->p|ortPixMa|
|00001c50| 70 29 2c 20 26 74 68 65 | 50 6f 72 74 2d 3e 70 6f |p), &the|Port->po|
|00001c60| 72 74 42 69 74 73 2c 20 | 0d 09 09 09 09 09 26 6f |rtBits, |......&o|
|00001c70| 66 66 72 65 63 74 2c 20 | 26 63 6c 69 70 70 65 72 |ffrect, |&clipper|
|00001c80| 2c 20 28 73 68 6f 72 74 | 29 20 73 72 63 43 6f 70 |, (short|) srcCop|
|00001c90| 79 2c 20 0d 09 09 09 09 | 09 28 52 67 6e 48 61 6e |y, .....|.(RgnHan|
|00001ca0| 64 6c 65 29 20 4e 49 4c | 29 3b 0d 09 09 09 48 55 |dle) NIL|);....HU|
|00001cb0| 6e 6c 6f 63 6b 28 28 48 | 61 6e 64 6c 65 29 20 28 |nlock((H|andle) (|
|00001cc0| 66 6c 6f 75 72 69 6e 65 | 5f 62 6d 61 70 2d 3e 70 |flourine|_bmap->p|
|00001cd0| 6f 72 74 50 69 78 4d 61 | 70 29 29 3b 0d 09 09 7d |ortPixMa|p));...}|
|00001ce0| 0d 09 09 65 6c 73 65 0d | 09 09 7b 0d 09 09 09 53 |...else.|..{....S|
|00001cf0| 65 74 4f 72 69 67 69 6e | 28 20 73 32 5f 6f 66 66 |etOrigin|( s2_off|
|00001d00| 5f 6c 65 66 74 2c 20 73 | 32 5f 6f 66 66 5f 74 6f |_left, s|2_off_to|
|00001d10| 70 20 29 3b 0d 09 09 09 | 66 6f 72 20 28 20 69 20 |p );....|for ( i |
|00001d20| 3d 20 30 3b 20 69 20 3c | 20 61 6c 6c 5f 6d 79 5f |= 0; i <| all_my_|
|00001d30| 63 6f 6c 6f 72 73 3b 20 | 69 2b 2b 29 0d 09 09 09 |colors; |i++)....|
|00001d40| 7b 0d 09 09 09 09 50 6d | 46 6f 72 65 43 6f 6c 6f |{.....Pm|ForeColo|
|00001d50| 72 28 20 69 20 29 3b 0d | 09 09 09 09 4d 6f 76 65 |r( i );.|....Move|
|00001d60| 54 6f 28 20 30 2c 20 69 | 20 29 3b 0d 09 09 09 09 |To( 0, i| );.....|
|00001d70| 4c 69 6e 65 54 6f 28 20 | 33 30 30 2c 20 69 20 29 |LineTo( |300, i )|
|00001d80| 3b 0d 09 09 09 7d 0d 09 | 09 09 53 65 74 4f 72 69 |;....}..|..SetOri|
|00001d90| 67 69 6e 28 20 30 2c 20 | 30 29 3b 0d 09 09 7d 0d |gin( 0, |0);...}.|
|00001da0| 09 7d 0d 09 43 6c 69 70 | 52 65 63 74 28 20 26 66 |.}..Clip|Rect( &f|
|00001db0| 6c 6f 75 72 69 6e 65 5f | 57 69 6e 64 6f 77 2d 3e |lourine_|Window->|
|00001dc0| 70 6f 72 74 52 65 63 74 | 20 29 3b 0d 7d 0d 0d 2f |portRect| );.}../|
|00001dd0| 2a 20 45 6e 64 20 6f 66 | 20 55 70 44 61 74 65 20 |* End of| UpDate |
|00001de0| 2a 2f 0d 0d 2f 2a 20 20 | 3d 3d 3d 3d 3d 3d 3d 3d |*/../* |========|
|00001df0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e10| 3d 3d 3d 20 20 2a 2f 0d | 2f 2a 20 76 65 72 74 69 |=== */.|/* verti|
|00001e20| 63 61 6c 20 73 63 72 6f | 6c 6c 20 62 61 72 20 2a |cal scro|ll bar *|
|00001e30| 2f 0d 0d 73 74 61 74 69 | 63 20 76 6f 69 64 20 48 |/..stati|c void H|
|00001e40| 61 6e 64 6c 65 56 53 63 | 72 6f 6c 6c 42 61 72 20 |andleVSc|rollBar |
|00001e50| 28 63 6f 64 65 2c 20 53 | 74 61 72 74 2c 20 53 74 |(code, S|tart, St|
|00001e60| 6f 70 2c 20 49 6e 63 72 | 65 6d 65 6e 74 2c 20 4c |op, Incr|ement, L|
|00001e70| 49 6e 63 72 65 6d 65 6e | 74 2c 0d 09 09 09 09 09 |Incremen|t,......|
|00001e80| 09 09 20 20 74 68 65 43 | 6f 6e 74 72 6f 6c 2c 20 |.. theC|ontrol, |
|00001e90| 6d 79 50 74 29 0d 09 73 | 68 6f 72 74 20 63 6f 64 |myPt)..s|hort cod|
|00001ea0| 65 3b 09 09 09 09 09 2f | 2a 20 20 53 65 6c 65 63 |e;...../|* Selec|
|00001eb0| 74 69 6f 6e 20 63 6f 64 | 65 20 66 6f 72 20 70 61 |tion cod|e for pa|
|00001ec0| 72 74 20 6f 66 20 73 63 | 72 6f 6c 6c 20 62 61 72 |rt of sc|roll bar|
|00001ed0| 20 20 2a 2f 0d 09 73 68 | 6f 72 74 20 53 74 61 72 | */..sh|ort Star|
|00001ee0| 74 3b 09 09 09 09 2f 2a | 20 20 4d 69 6e 69 6d 75 |t;..../*| Minimu|
|00001ef0| 6d 20 76 61 6c 75 65 20 | 74 68 65 20 73 63 72 6f |m value |the scro|
|00001f00| 6c 6c 20 62 61 72 20 63 | 61 6e 20 61 73 73 75 6d |ll bar c|an assum|
|00001f10| 65 20 2a 2f 0d 09 73 68 | 6f 72 74 20 53 74 6f 70 |e */..sh|ort Stop|
|00001f20| 3b 09 09 09 09 09 2f 2a | 20 20 4d 61 78 69 6d 75 |;...../*| Maximu|
|00001f30| 6d 20 76 61 6c 75 65 20 | 74 68 65 20 73 63 72 6f |m value |the scro|
|00001f40| 6c 6c 20 62 61 72 20 63 | 61 6e 20 61 73 73 75 6d |ll bar c|an assum|
|00001f50| 65 20 2a 2f 0d 09 73 68 | 6f 72 74 20 4c 49 6e 63 |e */..sh|ort LInc|
|00001f60| 72 65 6d 65 6e 74 2c 20 | 49 6e 63 72 65 6d 65 6e |rement, |Incremen|
|00001f70| 74 3b 09 2f 2a 20 20 49 | 6e 63 72 65 6d 65 6e 74 |t;./* I|ncrement|
|00001f80| 20 74 6f 20 6d 6f 76 65 | 20 77 68 65 6e 20 70 72 | to move| when pr|
|00001f90| 65 73 73 65 64 20 69 6e | 20 61 6e 2a 2f 0d 09 43 |essed in| an*/..C|
|00001fa0| 6f 6e 74 72 6f 6c 48 61 | 6e 64 6c 65 20 74 68 65 |ontrolHa|ndle the|
|00001fb0| 43 6f 6e 74 72 6f 6c 3b | 09 2f 2a 20 20 48 61 6e |Control;|./* Han|
|00001fc0| 64 6c 65 20 74 6f 20 74 | 68 65 20 73 63 72 6f 6c |dle to t|he scrol|
|00001fd0| 6c 20 62 61 72 20 63 6f | 6e 74 72 6f 6c 20 2a 2f |l bar co|ntrol */|
|00001fe0| 0d 09 50 6f 69 6e 74 20 | 6d 79 50 74 3b 09 09 09 |..Point |myPt;...|
|00001ff0| 09 09 2f 2a 20 20 52 65 | 74 75 72 6e 65 64 20 70 |../* Re|turned p|
|00002000| 6f 69 6e 74 20 66 72 6f | 6d 20 74 72 61 63 6b 20 |oint fro|m track |
|00002010| 74 68 65 20 73 63 72 6f | 6c 6c 62 61 72 20 2a 2f |the scro|llbar */|
|00002020| 0d 7b 09 09 09 09 09 09 | 2f 2a 20 20 53 74 61 72 |.{......|/* Star|
|00002030| 74 20 6f 66 20 74 68 69 | 73 20 66 75 6e 63 74 69 |t of thi|s functi|
|00002040| 6f 6e 20 2a 2f 0d 09 73 | 68 6f 72 74 20 74 68 65 |on */..s|hort the|
|00002050| 56 61 6c 75 65 3b 09 09 | 09 2f 2a 20 20 56 61 6c |Value;..|./* Val|
|00002060| 75 65 20 6f 66 20 74 68 | 65 20 73 63 72 6f 6c 6c |ue of th|e scroll|
|00002070| 62 61 72 20 2a 2f 0d 09 | 6c 6f 6e 67 20 4d 61 78 |bar */..|long Max|
|00002080| 54 69 63 6b 3b 09 09 09 | 2f 2a 20 20 54 69 6d 65 |Tick;...|/* Time|
|00002090| 72 20 75 73 65 64 20 66 | 6f 72 20 72 65 70 65 61 |r used f|or repea|
|000020a0| 74 20 73 63 72 6f 6c 6c | 69 6e 67 20 2a 2f 0d 0d |t scroll|ing */..|
|000020b0| 09 64 6f 09 09 09 09 09 | 09 2f 2a 20 44 6f 20 74 |.do.....|./* Do t|
|000020c0| 68 65 20 73 63 72 6f 6c | 6c 20 61 73 20 6c 6f 6e |he scrol|l as lon|
|000020d0| 67 20 61 73 20 74 68 65 | 20 62 75 74 74 6f 6e 20 |g as the| button |
|000020e0| 69 73 20 64 6f 2a 2f 0d | 09 7b 09 09 09 09 09 2f |is do*/.|.{...../|
|000020f0| 2a 20 54 69 6d 65 72 20 | 75 73 65 64 20 66 6f 72 |* Timer |used for|
|00002100| 20 72 65 70 65 61 74 20 | 73 63 72 6f 6c 6c 69 6e | repeat |scrollin|
|00002110| 67 20 2a 2f 0d 09 09 48 | 69 6c 69 74 65 43 6f 6e |g */...H|iliteCon|
|00002120| 74 72 6f 6c 20 28 74 68 | 65 43 6f 6e 74 72 6f 6c |trol (th|eControl|
|00002130| 2c 20 63 6f 64 65 29 3b | 09 2f 2a 20 44 61 72 6b |, code);|./* Dark|
|00002140| 65 6e 20 74 68 65 20 61 | 72 72 6f 77 20 2a 2f 0d |en the a|rrow */.|
|00002150| 09 09 74 68 65 56 61 6c | 75 65 20 3d 20 47 65 74 |..theVal|ue = Get|
|00002160| 43 74 6c 56 61 6c 75 65 | 20 28 74 68 65 43 6f 6e |CtlValue| (theCon|
|00002170| 74 72 6f 6c 29 3b 09 2f | 2a 20 47 65 74 20 63 75 |trol);./|* Get cu|
|00002180| 72 72 65 6e 74 20 73 74 | 61 74 65 20 2a 2f 0d 0d |rrent st|ate */..|
|00002190| 09 09 69 66 20 28 63 6f | 64 65 20 3d 3d 20 69 6e |..if (co|de == in|
|000021a0| 55 70 42 75 74 74 6f 6e | 29 09 2f 2a 20 53 65 65 |UpButton|)./* See|
|000021b0| 20 69 66 20 69 6e 20 74 | 68 65 20 55 70 20 61 72 | if in t|he Up ar|
|000021c0| 72 6f 77 20 2a 2f 0d 09 | 09 7b 0d 09 09 09 74 68 |row */..|.{....th|
|000021d0| 65 56 61 6c 75 65 20 3d | 20 74 68 65 56 61 6c 75 |eValue =| theValu|
|000021e0| 65 20 2d 20 49 6e 63 72 | 65 6d 65 6e 74 3b 09 2f |e - Incr|ement;./|
|000021f0| 2a 20 53 75 62 74 72 61 | 63 74 20 74 68 65 20 73 |* Subtra|ct the s|
|00002200| 69 6e 67 6c 65 20 64 2a | 2f 0d 09 09 09 69 66 20 |ingle d*|/....if |
|00002210| 28 74 68 65 56 61 6c 75 | 65 20 3c 20 53 74 61 72 |(theValu|e < Star|
|00002220| 74 29 09 2f 2a 20 43 68 | 65 63 6b 20 66 6f 72 20 |t)./* Ch|eck for |
|00002230| 62 6f 75 6e 64 61 72 79 | 20 63 6f 6e 64 69 74 69 |boundary| conditi|
|00002240| 6f 6e 73 20 2a 2f 0d 09 | 09 09 09 74 68 65 56 61 |ons */..|...theVa|
|00002250| 6c 75 65 20 3d 20 53 74 | 61 72 74 3b 09 2f 2a 20 |lue = St|art;./* |
|00002260| 50 69 6e 20 61 74 20 74 | 68 65 20 73 74 61 72 74 |Pin at t|he start|
|00002270| 20 76 61 6c 75 65 20 2a | 2f 0d 09 09 7d 0d 0d 09 | value *|/...}...|
|00002280| 09 69 66 20 28 63 6f 64 | 65 20 3d 3d 20 69 6e 44 |.if (cod|e == inD|
|00002290| 6f 77 6e 42 75 74 74 6f | 6e 29 09 2f 2a 20 53 65 |ownButto|n)./* Se|
|000022a0| 65 20 69 66 20 69 6e 20 | 74 68 65 20 44 6f 77 6e |e if in |the Down|
|000022b0| 20 61 72 72 6f 77 20 2a | 2f 0d 09 09 7b 0d 09 09 | arrow *|/...{...|
|000022c0| 09 74 68 65 56 61 6c 75 | 65 20 3d 20 74 68 65 56 |.theValu|e = theV|
|000022d0| 61 6c 75 65 20 2b 20 49 | 6e 63 72 65 6d 65 6e 74 |alue + I|ncrement|
|000022e0| 3b 09 2f 2a 20 41 64 64 | 20 74 68 65 20 73 69 6e |;./* Add| the sin|
|000022f0| 67 6c 65 20 64 65 63 72 | 65 6d 2a 2f 0d 09 09 09 |gle decr|em*/....|
|00002300| 69 66 20 28 74 68 65 56 | 61 6c 75 65 20 3e 20 53 |if (theV|alue > S|
|00002310| 74 6f 70 29 09 2f 2a 20 | 43 68 65 63 6b 20 66 6f |top)./* |Check fo|
|00002320| 72 20 62 6f 75 6e 64 61 | 72 79 20 63 6f 6e 64 69 |r bounda|ry condi|
|00002330| 74 69 6f 6e 73 20 2a 2f | 0d 09 09 09 09 74 68 65 |tions */|.....the|
|00002340| 56 61 6c 75 65 20 3d 20 | 53 74 6f 70 3b 09 2f 2a |Value = |Stop;./*|
|00002350| 20 50 69 6e 20 61 74 20 | 74 68 65 20 73 74 6f 70 | Pin at |the stop|
|00002360| 20 76 61 6c 75 65 20 2a | 2f 0d 09 09 7d 0d 09 09 | value *|/...}...|
|00002370| 0d 09 09 69 66 20 28 63 | 6f 64 65 20 3d 3d 20 69 |...if (c|ode == i|
|00002380| 6e 50 61 67 65 55 70 29 | 09 2f 2a 20 53 65 65 20 |nPageUp)|./* See |
|00002390| 69 66 20 69 6e 20 74 68 | 65 20 75 70 2f 6c 65 66 |if in th|e up/lef|
|000023a0| 74 20 67 72 65 79 20 61 | 72 65 61 20 2a 2f 0d 09 |t grey a|rea */..|
|000023b0| 09 7b 0d 09 09 09 74 68 | 65 56 61 6c 75 65 20 3d |.{....th|eValue =|
|000023c0| 20 74 68 65 56 61 6c 75 | 65 20 2d 20 4c 49 6e 63 | theValu|e - LInc|
|000023d0| 72 65 6d 65 6e 74 3b 09 | 2f 2a 20 53 75 62 74 72 |rement;.|/* Subtr|
|000023e0| 61 63 74 20 74 68 65 20 | 70 61 67 65 20 69 6e 63 |act the |page inc|
|000023f0| 2a 2f 0d 09 09 09 69 66 | 20 28 74 68 65 56 61 6c |*/....if| (theVal|
|00002400| 75 65 20 3c 20 53 74 61 | 72 74 29 09 2f 2a 20 43 |ue < Sta|rt)./* C|
|00002410| 68 65 63 6b 20 66 6f 72 | 20 62 6f 75 6e 64 61 72 |heck for| boundar|
|00002420| 79 20 63 6f 6e 64 69 74 | 69 6f 6e 73 20 2a 2f 0d |y condit|ions */.|
|00002430| 09 09 09 09 74 68 65 56 | 61 6c 75 65 20 3d 20 53 |....theV|alue = S|
|00002440| 74 61 72 74 3b 09 2f 2a | 20 50 69 6e 20 61 74 20 |tart;./*| Pin at |
|00002450| 74 68 65 20 53 74 61 72 | 74 20 76 61 6c 75 65 20 |the Star|t value |
|00002460| 2a 2f 0d 09 09 7d 0d 09 | 09 0d 09 09 69 66 20 28 |*/...}..|....if (|
|00002470| 63 6f 64 65 20 3d 3d 20 | 69 6e 50 61 67 65 44 6f |code == |inPageDo|
|00002480| 77 6e 29 09 2f 2a 20 53 | 65 65 20 69 66 20 69 6e |wn)./* S|ee if in|
|00002490| 20 74 68 65 20 64 6f 77 | 6e 2f 72 69 67 68 74 20 | the dow|n/right |
|000024a0| 67 72 65 79 20 61 72 65 | 61 20 2a 2f 0d 09 09 7b |grey are|a */...{|
|000024b0| 0d 09 09 09 74 68 65 56 | 61 6c 75 65 20 3d 20 74 |....theV|alue = t|
|000024c0| 68 65 56 61 6c 75 65 20 | 2b 20 4c 49 6e 63 72 65 |heValue |+ LIncre|
|000024d0| 6d 65 6e 74 3b 09 2f 2a | 20 41 64 64 20 74 68 65 |ment;./*| Add the|
|000024e0| 20 70 61 67 65 20 69 6e | 63 72 65 6d 65 6e 2a 2f | page in|cremen*/|
|000024f0| 0d 09 09 09 69 66 20 28 | 74 68 65 56 61 6c 75 65 |....if (|theValue|
|00002500| 20 3e 20 53 74 6f 70 29 | 09 2f 2a 20 43 68 65 63 | > Stop)|./* Chec|
|00002510| 6b 20 66 6f 72 20 62 6f | 75 6e 64 61 72 79 20 63 |k for bo|undary c|
|00002520| 6f 6e 64 69 74 69 6f 6e | 73 20 2a 2f 0d 09 09 09 |ondition|s */....|
|00002530| 09 74 68 65 56 61 6c 75 | 65 20 3d 20 53 74 6f 70 |.theValu|e = Stop|
|00002540| 3b 09 2f 2a 20 50 69 6e | 20 61 74 20 74 68 65 20 |;./* Pin| at the |
|00002550| 53 74 6f 70 20 76 61 6c | 75 65 20 2a 2f 0d 09 09 |Stop val|ue */...|
|00002560| 7d 0d 0d 09 09 69 66 20 | 28 63 6f 64 65 20 3d 3d |}....if |(code ==|
|00002570| 20 69 6e 54 68 75 6d 62 | 29 09 2f 2a 20 53 65 65 | inThumb|)./* See|
|00002580| 20 69 66 20 69 6e 20 74 | 68 65 20 64 72 61 67 20 | if in t|he drag |
|00002590| 62 6f 78 20 61 72 65 61 | 20 2a 2f 0d 09 09 7b 0d |box area| */...{.|
|000025a0| 09 09 09 63 6f 64 65 20 | 3d 20 54 72 61 63 6b 43 |...code |= TrackC|
|000025b0| 6f 6e 74 72 6f 6c 20 28 | 74 68 65 43 6f 6e 74 72 |ontrol (|theContr|
|000025c0| 6f 6c 2c 20 6d 79 50 74 | 2c 20 4e 49 4c 29 3b 0d |ol, myPt|, NIL);.|
|000025d0| 09 09 09 74 68 65 56 61 | 6c 75 65 20 3d 20 47 65 |...theVa|lue = Ge|
|000025e0| 74 43 74 6c 56 61 6c 75 | 65 20 28 74 68 65 43 6f |tCtlValu|e (theCo|
|000025f0| 6e 74 72 6f 6c 29 3b 0d | 09 09 7d 0d 0d 09 09 53 |ntrol);.|..}....S|
|00002600| 65 74 43 74 6c 56 61 6c | 75 65 20 28 74 68 65 43 |etCtlVal|ue (theC|
|00002610| 6f 6e 74 72 6f 6c 2c 20 | 74 68 65 56 61 6c 75 65 |ontrol, |theValue|
|00002620| 29 3b 09 2f 2a 20 53 65 | 74 20 6e 65 77 20 73 74 |);./* Se|t new st|
|00002630| 61 74 65 20 2a 2f 0d 0d | 09 09 73 32 5f 6f 66 66 |ate */..|..s2_off|
|00002640| 5f 74 6f 70 20 3d 20 28 | 73 68 6f 72 74 29 20 28 |_top = (|short) (|
|00002650| 20 28 64 6f 75 62 6c 65 | 29 28 66 6c 6f 75 72 69 | (double|)(flouri|
|00002660| 6e 65 5f 72 65 63 74 2e | 62 6f 74 74 6f 6d 20 2d |ne_rect.|bottom -|
|00002670| 20 66 6c 6f 75 72 69 6e | 65 5f 72 65 63 74 2e 74 | flourin|e_rect.t|
|00002680| 6f 70 29 20 0d 09 09 09 | 09 09 09 09 2a 20 28 64 |op) ....|....* (d|
|00002690| 6f 75 62 6c 65 29 20 74 | 68 65 56 61 6c 75 65 20 |ouble) t|heValue |
|000026a0| 2f 20 28 64 6f 75 62 6c | 65 29 20 28 53 74 6f 70 |/ (doubl|e) (Stop|
|000026b0| 20 2d 20 53 74 61 72 74 | 29 20 29 3b 0d 0d 09 09 | - Start|) );....|
|000026c0| 64 72 61 77 5f 66 6c 6f | 75 72 69 6e 65 28 29 3b |draw_flo|urine();|
|000026d0| 0d 0d 09 09 4d 61 78 54 | 69 63 6b 20 3d 20 54 69 |....MaxT|ick = Ti|
|000026e0| 63 6b 43 6f 75 6e 74 20 | 28 29 20 2b 20 39 3b 09 |ckCount |() + 9;.|
|000026f0| 2f 2a 20 54 69 6d 65 20 | 64 65 6c 61 79 20 66 6f |/* Time |delay fo|
|00002700| 72 20 61 75 74 6f 2d 73 | 63 72 6f 6c 6c 20 2a 2f |r auto-s|croll */|
|00002710| 0d 09 09 64 6f 09 2f 2a | 20 53 74 61 72 74 20 6f |...do./*| Start o|
|00002720| 66 20 64 65 6c 61 79 20 | 72 6f 75 74 69 6e 65 20 |f delay |routine |
|00002730| 2a 2f 0d 09 09 7b 20 2f | 2a 20 53 70 69 6e 20 6f |*/...{ /|* Spin o|
|00002740| 6e 20 64 6f 69 6e 67 20 | 6e 6f 74 68 69 6e 67 20 |n doing |nothing |
|00002750| 2a 2f 0d 09 09 7d 20 77 | 68 69 6c 65 20 28 28 42 |*/...} w|hile ((B|
|00002760| 75 74 74 6f 6e 20 28 29 | 20 3d 3d 20 54 52 55 45 |utton ()| == TRUE|
|00002770| 29 20 26 26 20 28 54 69 | 63 6b 43 6f 75 6e 74 20 |) && (Ti|ckCount |
|00002780| 28 29 20 3c 3d 20 4d 61 | 78 54 69 63 6b 29 29 3b |() <= Ma|xTick));|
|00002790| 09 2f 2a 20 45 2a 2f 0d | 0d 09 09 48 69 6c 69 74 |./* E*/.|...Hilit|
|000027a0| 65 43 6f 6e 74 72 6f 6c | 20 28 74 68 65 43 6f 6e |eControl| (theCon|
|000027b0| 74 72 6f 6c 2c 20 30 29 | 3b 09 2f 2a 20 4c 69 67 |trol, 0)|;./* Lig|
|000027c0| 68 74 65 6e 20 74 68 65 | 20 61 72 72 6f 77 20 2a |hten the| arrow *|
|000027d0| 2f 0d 09 7d 09 09 09 09 | 09 2f 2a 20 45 6e 64 20 |/..}....|./* End |
|000027e0| 66 6f 72 20 53 74 69 6c | 6c 44 6f 77 6e 20 2a 2f |for Stil|lDown */|
|000027f0| 0d 09 77 68 69 6c 65 20 | 28 53 74 69 6c 6c 44 6f |..while |(StillDo|
|00002800| 77 6e 20 28 29 20 3d 3d | 20 54 52 55 45 29 3b 09 |wn () ==| TRUE);.|
|00002810| 2f 2a 20 45 6e 64 20 66 | 6f 72 20 53 74 69 6c 6c |/* End f|or Still|
|00002820| 44 6f 77 6e 20 2a 2f 0d | 7d 0d 0d 2f 2a 20 45 6e |Down */.|}../* En|
|00002830| 64 20 66 6f 72 20 48 61 | 6e 64 6c 65 56 53 63 72 |d for Ha|ndleVScr|
|00002840| 6f 6c 6c 42 61 72 20 2a | 2f 0d 0d 2f 2a 20 3d 3d |ollBar *|/../* ==|
|00002850| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002860| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002870| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002880| 3d 3d 3d 3d 20 2a 2f 0d | 0d 2f 2a 20 68 6f 72 69 |==== */.|./* hori|
|00002890| 7a 6f 6e 74 61 6c 20 73 | 63 72 6f 6c 6c 20 62 61 |zontal s|croll ba|
|000028a0| 72 20 2a 2f 0d 0d 73 74 | 61 74 69 63 20 76 6f 69 |r */..st|atic voi|
|000028b0| 64 20 48 61 6e 64 6c 65 | 48 53 63 72 6f 6c 6c 42 |d Handle|HScrollB|
|000028c0| 61 72 20 28 63 6f 64 65 | 2c 20 53 74 61 72 74 2c |ar (code|, Start,|
|000028d0| 20 53 74 6f 70 2c 20 49 | 6e 63 72 65 6d 65 6e 74 | Stop, I|ncrement|
|000028e0| 2c 20 4c 49 6e 63 72 65 | 6d 65 6e 74 2c 0d 09 09 |, LIncre|ment,...|
|000028f0| 09 09 09 09 09 20 20 74 | 68 65 43 6f 6e 74 72 6f |..... t|heContro|
|00002900| 6c 2c 20 6d 79 50 74 29 | 0d 09 73 68 6f 72 74 20 |l, myPt)|..short |
|00002910| 63 6f 64 65 3b 09 09 09 | 09 09 2f 2a 20 20 53 65 |code;...|../* Se|
|00002920| 6c 65 63 74 69 6f 6e 20 | 63 6f 64 65 20 66 6f 72 |lection |code for|
|00002930| 20 70 61 72 74 20 6f 66 | 20 73 63 72 6f 6c 6c 20 | part of| scroll |
|00002940| 62 61 72 20 20 2a 2f 0d | 09 73 68 6f 72 74 20 53 |bar */.|.short S|
|00002950| 74 61 72 74 3b 09 09 09 | 09 2f 2a 20 20 4d 69 6e |tart;...|./* Min|
|00002960| 69 6d 75 6d 20 76 61 6c | 75 65 20 74 68 65 20 73 |imum val|ue the s|
|00002970| 63 72 6f 6c 6c 20 62 61 | 72 20 63 61 6e 20 61 73 |croll ba|r can as|
|00002980| 73 75 6d 65 20 2a 2f 0d | 09 73 68 6f 72 74 20 53 |sume */.|.short S|
|00002990| 74 6f 70 3b 09 09 09 09 | 09 2f 2a 20 20 4d 61 78 |top;....|./* Max|
|000029a0| 69 6d 75 6d 20 76 61 6c | 75 65 20 74 68 65 20 73 |imum val|ue the s|
|000029b0| 63 72 6f 6c 6c 20 62 61 | 72 20 63 61 6e 20 61 73 |croll ba|r can as|
|000029c0| 73 75 6d 65 20 2a 2f 0d | 09 73 68 6f 72 74 20 4c |sume */.|.short L|
|000029d0| 49 6e 63 72 65 6d 65 6e | 74 2c 20 49 6e 63 72 65 |Incremen|t, Incre|
|000029e0| 6d 65 6e 74 3b 09 2f 2a | 20 20 49 6e 63 72 65 6d |ment;./*| Increm|
|000029f0| 65 6e 74 20 74 6f 20 6d | 6f 76 65 20 77 68 65 6e |ent to m|ove when|
|00002a00| 20 70 72 65 73 73 65 64 | 20 69 6e 20 61 6e 2a 2f | pressed| in an*/|
|00002a10| 0d 09 43 6f 6e 74 72 6f | 6c 48 61 6e 64 6c 65 20 |..Contro|lHandle |
|00002a20| 74 68 65 43 6f 6e 74 72 | 6f 6c 3b 09 2f 2a 20 20 |theContr|ol;./* |
|00002a30| 48 61 6e 64 6c 65 20 74 | 6f 20 74 68 65 20 73 63 |Handle t|o the sc|
|00002a40| 72 6f 6c 6c 20 62 61 72 | 20 63 6f 6e 74 72 6f 6c |roll bar| control|
|00002a50| 20 2a 2f 0d 09 50 6f 69 | 6e 74 20 6d 79 50 74 3b | */..Poi|nt myPt;|
|00002a60| 09 09 09 09 09 2f 2a 20 | 20 52 65 74 75 72 6e 65 |...../* | Returne|
|00002a70| 64 20 70 6f 69 6e 74 20 | 66 72 6f 6d 20 74 72 61 |d point |from tra|
|00002a80| 63 6b 20 74 68 65 20 73 | 63 72 6f 6c 6c 62 61 72 |ck the s|crollbar|
|00002a90| 20 2a 2f 0d 7b 09 09 09 | 09 09 09 2f 2a 20 20 53 | */.{...|.../* S|
|00002aa0| 74 61 72 74 20 6f 66 20 | 74 68 69 73 20 66 75 6e |tart of |this fun|
|00002ab0| 63 74 69 6f 6e 20 2a 2f | 0d 09 73 68 6f 72 74 20 |ction */|..short |
|00002ac0| 74 68 65 56 61 6c 75 65 | 3b 09 09 09 2f 2a 20 20 |theValue|;.../* |
|00002ad0| 56 61 6c 75 65 20 6f 66 | 20 74 68 65 20 73 63 72 |Value of| the scr|
|00002ae0| 6f 6c 6c 62 61 72 20 2a | 2f 0d 09 6c 6f 6e 67 20 |ollbar *|/..long |
|00002af0| 4d 61 78 54 69 63 6b 3b | 09 09 09 2f 2a 20 20 54 |MaxTick;|.../* T|
|00002b00| 69 6d 65 72 20 75 73 65 | 64 20 66 6f 72 20 72 65 |imer use|d for re|
|00002b10| 70 65 61 74 20 73 63 72 | 6f 6c 6c 69 6e 67 20 2a |peat scr|olling *|
|00002b20| 2f 0d 0d 09 64 6f 09 09 | 09 09 09 09 2f 2a 20 44 |/...do..|..../* D|
|00002b30| 6f 20 74 68 65 20 73 63 | 72 6f 6c 6c 20 61 73 20 |o the sc|roll as |
|00002b40| 6c 6f 6e 67 20 61 73 20 | 74 68 65 20 62 75 74 74 |long as |the butt|
|00002b50| 6f 6e 20 69 73 20 64 6f | 2a 2f 0d 09 7b 09 09 09 |on is do|*/..{...|
|00002b60| 09 09 2f 2a 20 54 69 6d | 65 72 20 75 73 65 64 20 |../* Tim|er used |
|00002b70| 66 6f 72 20 72 65 70 65 | 61 74 20 73 63 72 6f 6c |for repe|at scrol|
|00002b80| 6c 69 6e 67 20 2a 2f 0d | 09 09 48 69 6c 69 74 65 |ling */.|..Hilite|
|00002b90| 43 6f 6e 74 72 6f 6c 20 | 28 74 68 65 43 6f 6e 74 |Control |(theCont|
|00002ba0| 72 6f 6c 2c 20 63 6f 64 | 65 29 3b 09 2f 2a 20 44 |rol, cod|e);./* D|
|00002bb0| 61 72 6b 65 6e 20 74 68 | 65 20 61 72 72 6f 77 20 |arken th|e arrow |
|00002bc0| 2a 2f 0d 09 09 74 68 65 | 56 61 6c 75 65 20 3d 20 |*/...the|Value = |
|00002bd0| 47 65 74 43 74 6c 56 61 | 6c 75 65 20 28 74 68 65 |GetCtlVa|lue (the|
|00002be0| 43 6f 6e 74 72 6f 6c 29 | 3b 09 2f 2a 20 47 65 74 |Control)|;./* Get|
|00002bf0| 20 63 75 72 72 65 6e 74 | 20 73 74 61 74 65 20 2a | current| state *|
|00002c00| 2f 0d 0d 09 09 69 66 20 | 28 63 6f 64 65 20 3d 3d |/....if |(code ==|
|00002c10| 20 69 6e 55 70 42 75 74 | 74 6f 6e 29 09 2f 2a 20 | inUpBut|ton)./* |
|00002c20| 53 65 65 20 69 66 20 69 | 6e 20 74 68 65 20 55 70 |See if i|n the Up|
|00002c30| 20 61 72 72 6f 77 20 2a | 2f 0d 09 09 7b 0d 09 09 | arrow *|/...{...|
|00002c40| 09 74 68 65 56 61 6c 75 | 65 20 3d 20 74 68 65 56 |.theValu|e = theV|
|00002c50| 61 6c 75 65 20 2d 20 49 | 6e 63 72 65 6d 65 6e 74 |alue - I|ncrement|
|00002c60| 3b 09 2f 2a 20 53 75 62 | 74 72 61 63 74 20 74 68 |;./* Sub|tract th|
|00002c70| 65 20 73 69 6e 67 6c 65 | 20 64 2a 2f 0d 09 09 09 |e single| d*/....|
|00002c80| 69 66 20 28 74 68 65 56 | 61 6c 75 65 20 3c 20 53 |if (theV|alue < S|
|00002c90| 74 61 72 74 29 09 2f 2a | 20 43 68 65 63 6b 20 66 |tart)./*| Check f|
|00002ca0| 6f 72 20 62 6f 75 6e 64 | 61 72 79 20 63 6f 6e 64 |or bound|ary cond|
|00002cb0| 69 74 69 6f 6e 73 20 2a | 2f 0d 09 09 09 09 74 68 |itions *|/.....th|
|00002cc0| 65 56 61 6c 75 65 20 3d | 20 53 74 61 72 74 3b 09 |eValue =| Start;.|
|00002cd0| 2f 2a 20 50 69 6e 20 61 | 74 20 74 68 65 20 73 74 |/* Pin a|t the st|
|00002ce0| 61 72 74 20 76 61 6c 75 | 65 20 2a 2f 0d 09 09 7d |art valu|e */...}|
|00002cf0| 0d 0d 09 09 69 66 20 28 | 63 6f 64 65 20 3d 3d 20 |....if (|code == |
|00002d00| 69 6e 44 6f 77 6e 42 75 | 74 74 6f 6e 29 09 2f 2a |inDownBu|tton)./*|
|00002d10| 20 53 65 65 20 69 66 20 | 69 6e 20 74 68 65 20 44 | See if |in the D|
|00002d20| 6f 77 6e 20 61 72 72 6f | 77 20 2a 2f 0d 09 09 7b |own arro|w */...{|
|00002d30| 0d 09 09 09 74 68 65 56 | 61 6c 75 65 20 3d 20 74 |....theV|alue = t|
|00002d40| 68 65 56 61 6c 75 65 20 | 2b 20 49 6e 63 72 65 6d |heValue |+ Increm|
|00002d50| 65 6e 74 3b 09 2f 2a 20 | 41 64 64 20 74 68 65 20 |ent;./* |Add the |
|00002d60| 73 69 6e 67 6c 65 20 64 | 65 63 72 65 6d 2a 2f 0d |single d|ecrem*/.|
|00002d70| 09 09 09 69 66 20 28 74 | 68 65 56 61 6c 75 65 20 |...if (t|heValue |
|00002d80| 3e 20 53 74 6f 70 29 09 | 2f 2a 20 43 68 65 63 6b |> Stop).|/* Check|
|00002d90| 20 66 6f 72 20 62 6f 75 | 6e 64 61 72 79 20 63 6f | for bou|ndary co|
|00002da0| 6e 64 69 74 69 6f 6e 73 | 20 2a 2f 0d 09 09 09 09 |nditions| */.....|
|00002db0| 74 68 65 56 61 6c 75 65 | 20 3d 20 53 74 6f 70 3b |theValue| = Stop;|
|00002dc0| 09 2f 2a 20 50 69 6e 20 | 61 74 20 74 68 65 20 73 |./* Pin |at the s|
|00002dd0| 74 6f 70 20 76 61 6c 75 | 65 20 2a 2f 0d 09 09 7d |top valu|e */...}|
|00002de0| 0d 0d 09 09 69 66 20 28 | 63 6f 64 65 20 3d 3d 20 |....if (|code == |
|00002df0| 69 6e 50 61 67 65 55 70 | 29 09 2f 2a 20 53 65 65 |inPageUp|)./* See|
|00002e00| 20 69 66 20 69 6e 20 74 | 68 65 20 75 70 2f 6c 65 | if in t|he up/le|
|00002e10| 66 74 20 67 72 65 79 20 | 61 72 65 61 20 2a 2f 0d |ft grey |area */.|
|00002e20| 09 09 7b 0d 09 09 09 74 | 68 65 56 61 6c 75 65 20 |..{....t|heValue |
|00002e30| 3d 20 74 68 65 56 61 6c | 75 65 20 2d 20 4c 49 6e |= theVal|ue - LIn|
|00002e40| 63 72 65 6d 65 6e 74 3b | 09 2f 2a 20 53 75 62 74 |crement;|./* Subt|
|00002e50| 72 61 63 74 20 74 68 65 | 20 70 61 67 65 20 69 6e |ract the| page in|
|00002e60| 63 2a 2f 0d 09 09 09 69 | 66 20 28 74 68 65 56 61 |c*/....i|f (theVa|
|00002e70| 6c 75 65 20 3c 20 53 74 | 61 72 74 29 09 2f 2a 20 |lue < St|art)./* |
|00002e80| 43 68 65 63 6b 20 66 6f | 72 20 62 6f 75 6e 64 61 |Check fo|r bounda|
|00002e90| 72 79 20 63 6f 6e 64 69 | 74 69 6f 6e 73 20 2a 2f |ry condi|tions */|
|00002ea0| 0d 09 09 09 09 74 68 65 | 56 61 6c 75 65 20 3d 20 |.....the|Value = |
|00002eb0| 53 74 61 72 74 3b 09 2f | 2a 20 50 69 6e 20 61 74 |Start;./|* Pin at|
|00002ec0| 20 74 68 65 20 53 74 61 | 72 74 20 76 61 6c 75 65 | the Sta|rt value|
|00002ed0| 20 2a 2f 0d 09 09 7d 0d | 0d 09 09 69 66 20 28 63 | */...}.|...if (c|
|00002ee0| 6f 64 65 20 3d 3d 20 69 | 6e 50 61 67 65 44 6f 77 |ode == i|nPageDow|
|00002ef0| 6e 29 09 2f 2a 20 53 65 | 65 20 69 66 20 69 6e 20 |n)./* Se|e if in |
|00002f00| 74 68 65 20 64 6f 77 6e | 2f 72 69 67 68 74 20 67 |the down|/right g|
|00002f10| 72 65 79 20 61 72 65 61 | 20 2a 2f 0d 09 09 7b 0d |rey area| */...{.|
|00002f20| 09 09 09 74 68 65 56 61 | 6c 75 65 20 3d 20 74 68 |...theVa|lue = th|
|00002f30| 65 56 61 6c 75 65 20 2b | 20 4c 49 6e 63 72 65 6d |eValue +| LIncrem|
|00002f40| 65 6e 74 3b 09 2f 2a 20 | 41 64 64 20 74 68 65 20 |ent;./* |Add the |
|00002f50| 70 61 67 65 20 69 6e 63 | 72 65 6d 65 6e 2a 2f 0d |page inc|remen*/.|
|00002f60| 09 09 09 69 66 20 28 74 | 68 65 56 61 6c 75 65 20 |...if (t|heValue |
|00002f70| 3e 20 53 74 6f 70 29 09 | 2f 2a 20 43 68 65 63 6b |> Stop).|/* Check|
|00002f80| 20 66 6f 72 20 62 6f 75 | 6e 64 61 72 79 20 63 6f | for bou|ndary co|
|00002f90| 6e 64 69 74 69 6f 6e 73 | 20 2a 2f 0d 09 09 09 09 |nditions| */.....|
|00002fa0| 74 68 65 56 61 6c 75 65 | 20 3d 20 53 74 6f 70 3b |theValue| = Stop;|
|00002fb0| 09 2f 2a 20 50 69 6e 20 | 61 74 20 74 68 65 20 53 |./* Pin |at the S|
|00002fc0| 74 6f 70 20 76 61 6c 75 | 65 20 2a 2f 0d 09 09 7d |top valu|e */...}|
|00002fd0| 0d 0d 09 09 69 66 20 28 | 63 6f 64 65 20 3d 3d 20 |....if (|code == |
|00002fe0| 69 6e 54 68 75 6d 62 29 | 09 2f 2a 20 53 65 65 20 |inThumb)|./* See |
|00002ff0| 69 66 20 69 6e 20 74 68 | 65 20 64 72 61 67 20 62 |if in th|e drag b|
|00003000| 6f 78 20 61 72 65 61 20 | 2a 2f 0d 09 09 7b 0d 09 |ox area |*/...{..|
|00003010| 09 09 63 6f 64 65 20 3d | 20 54 72 61 63 6b 43 6f |..code =| TrackCo|
|00003020| 6e 74 72 6f 6c 20 28 74 | 68 65 43 6f 6e 74 72 6f |ntrol (t|heContro|
|00003030| 6c 2c 20 6d 79 50 74 2c | 20 4e 49 4c 29 3b 09 2f |l, myPt,| NIL);./|
|00003040| 2a 20 4c 65 74 20 74 68 | 65 20 4f 2a 2f 0d 09 09 |* Let th|e O*/...|
|00003050| 09 74 68 65 56 61 6c 75 | 65 20 3d 20 47 65 74 43 |.theValu|e = GetC|
|00003060| 74 6c 56 61 6c 75 65 20 | 28 74 68 65 43 6f 6e 74 |tlValue |(theCont|
|00003070| 72 6f 6c 29 3b 09 2f 2a | 20 47 65 74 20 63 75 72 |rol);./*| Get cur|
|00003080| 72 65 6e 74 20 73 74 61 | 74 65 2a 2f 0d 09 09 7d |rent sta|te*/...}|
|00003090| 0d 0d 09 09 53 65 74 43 | 74 6c 56 61 6c 75 65 20 |....SetC|tlValue |
|000030a0| 28 74 68 65 43 6f 6e 74 | 72 6f 6c 2c 20 74 68 65 |(theCont|rol, the|
|000030b0| 56 61 6c 75 65 29 3b 09 | 2f 2a 20 53 65 74 20 6e |Value);.|/* Set n|
|000030c0| 65 77 20 73 74 61 74 65 | 20 2a 2f 0d 0d 09 09 73 |ew state| */....s|
|000030d0| 32 5f 6f 66 66 5f 6c 65 | 66 74 20 3d 20 28 73 68 |2_off_le|ft = (sh|
|000030e0| 6f 72 74 29 20 28 20 28 | 64 6f 75 62 6c 65 29 28 |ort) ( (|double)(|
|000030f0| 66 6c 6f 75 72 69 6e 65 | 5f 72 65 63 74 2e 62 6f |flourine|_rect.bo|
|00003100| 74 74 6f 6d 20 2d 20 66 | 6c 6f 75 72 69 6e 65 5f |ttom - f|lourine_|
|00003110| 72 65 63 74 2e 74 6f 70 | 29 20 0d 09 09 09 09 09 |rect.top|) ......|
|00003120| 09 09 2a 20 28 64 6f 75 | 62 6c 65 29 20 74 68 65 |..* (dou|ble) the|
|00003130| 56 61 6c 75 65 20 2f 20 | 28 64 6f 75 62 6c 65 29 |Value / |(double)|
|00003140| 20 28 53 74 6f 70 20 2d | 20 53 74 61 72 74 29 20 | (Stop -| Start) |
|00003150| 29 3b 0d 0d 09 09 64 72 | 61 77 5f 66 6c 6f 75 72 |);....dr|aw_flour|
|00003160| 69 6e 65 28 29 3b 0d 0d | 09 09 4d 61 78 54 69 63 |ine();..|..MaxTic|
|00003170| 6b 20 3d 20 54 69 63 6b | 43 6f 75 6e 74 20 28 29 |k = Tick|Count ()|
|00003180| 20 2b 20 39 3b 09 2f 2a | 20 54 69 6d 65 20 64 65 | + 9;./*| Time de|
|00003190| 6c 61 79 20 66 6f 72 20 | 61 75 74 6f 2d 73 63 72 |lay for |auto-scr|
|000031a0| 6f 6c 6c 20 2a 2f 0d 09 | 09 64 6f 09 2f 2a 20 53 |oll */..|.do./* S|
|000031b0| 74 61 72 74 20 6f 66 20 | 64 65 6c 61 79 20 72 6f |tart of |delay ro|
|000031c0| 75 74 69 6e 65 20 2a 2f | 0d 09 09 7b 20 2f 2a 20 |utine */|...{ /* |
|000031d0| 53 70 69 6e 20 6f 6e 20 | 64 6f 69 6e 67 20 6e 6f |Spin on |doing no|
|000031e0| 74 68 69 6e 67 20 2a 2f | 0d 09 09 7d 20 77 68 69 |thing */|...} whi|
|000031f0| 6c 65 20 28 28 42 75 74 | 74 6f 6e 20 28 29 20 3d |le ((But|ton () =|
|00003200| 3d 20 54 52 55 45 29 20 | 26 26 20 28 54 69 63 6b |= TRUE) |&& (Tick|
|00003210| 43 6f 75 6e 74 20 28 29 | 20 3c 3d 20 4d 61 78 54 |Count ()| <= MaxT|
|00003220| 69 63 6b 29 29 3b 09 2f | 2a 20 45 2a 2f 0d 0d 09 |ick));./|* E*/...|
|00003230| 09 48 69 6c 69 74 65 43 | 6f 6e 74 72 6f 6c 20 28 |.HiliteC|ontrol (|
|00003240| 74 68 65 43 6f 6e 74 72 | 6f 6c 2c 20 30 29 3b 09 |theContr|ol, 0);.|
|00003250| 2f 2a 20 4c 69 67 68 74 | 65 6e 20 74 68 65 20 61 |/* Light|en the a|
|00003260| 72 72 6f 77 20 2a 2f 0d | 09 7d 09 09 09 09 09 2f |rrow */.|.}...../|
|00003270| 2a 20 45 6e 64 20 66 6f | 72 20 53 74 69 6c 6c 44 |* End fo|r StillD|
|00003280| 6f 77 6e 20 2a 2f 0d 09 | 77 68 69 6c 65 20 28 53 |own */..|while (S|
|00003290| 74 69 6c 6c 44 6f 77 6e | 20 28 29 20 3d 3d 20 54 |tillDown| () == T|
|000032a0| 52 55 45 29 3b 09 2f 2a | 20 45 6e 64 20 66 6f 72 |RUE);./*| End for|
|000032b0| 20 53 74 69 6c 6c 44 6f | 77 6e 20 2a 2f 0d 7d 0d | StillDo|wn */.}.|
|000032c0| 0d 2f 2a 20 45 6e 64 20 | 66 6f 72 20 48 61 6e 64 |./* End |for Hand|
|000032d0| 6c 65 48 53 63 72 6f 6c | 6c 42 61 72 20 2a 2f 0d |leHScrol|lBar */.|
|000032e0| 0d 73 74 61 74 69 63 20 | 76 6f 69 64 20 44 6f 5f |.static |void Do_|
|000032f0| 41 5f 53 63 72 6f 6c 6c | 42 61 72 20 28 63 6f 64 |A_Scroll|Bar (cod|
|00003300| 65 2c 20 74 68 65 43 6f | 6e 74 72 6f 6c 2c 20 6d |e, theCo|ntrol, m|
|00003310| 79 50 74 29 09 2f 2a 20 | 48 61 6e 64 6c 65 20 61 |yPt)./* |Handle a|
|00003320| 20 53 63 72 6f 6c 6c 42 | 61 2a 2f 0d 09 73 68 6f | ScrollB|a*/..sho|
|00003330| 72 74 20 63 6f 64 65 3b | 09 09 09 09 09 2f 2a 20 |rt code;|...../* |
|00003340| 57 68 69 63 68 20 70 6c | 61 63 65 20 69 6e 20 73 |Which pl|ace in s|
|00003350| 63 72 6f 6c 6c 62 61 72 | 20 77 61 73 20 70 72 65 |crollbar| was pre|
|00003360| 73 73 65 64 20 2a 2f 0d | 09 43 6f 6e 74 72 6f 6c |ssed */.|.Control|
|00003370| 48 61 6e 64 6c 65 20 74 | 68 65 43 6f 6e 74 72 6f |Handle t|heContro|
|00003380| 6c 3b 09 2f 2a 20 57 68 | 69 63 68 20 70 6c 61 63 |l;./* Wh|ich plac|
|00003390| 65 20 69 6e 20 73 63 72 | 6f 6c 6c 62 61 72 20 77 |e in scr|ollbar w|
|000033a0| 61 73 20 70 72 65 73 73 | 65 64 20 2a 2f 0d 09 50 |as press|ed */..P|
|000033b0| 6f 69 6e 74 20 6d 79 50 | 74 3b 09 09 09 09 09 2f |oint myP|t;...../|
|000033c0| 2a 20 57 68 65 72 65 20 | 74 68 65 20 73 63 72 6f |* Where |the scro|
|000033d0| 6c 6c 62 61 72 20 77 61 | 73 20 70 72 65 73 73 65 |llbar wa|s presse|
|000033e0| 64 20 2a 2f 0d 7b 09 09 | 09 09 09 09 2f 2a 20 53 |d */.{..|..../* S|
|000033f0| 74 61 72 74 20 6f 66 20 | 61 20 53 63 72 6f 6c 6c |tart of |a Scroll|
|00003400| 42 61 72 20 62 65 69 6e | 67 20 70 72 65 73 73 65 |Bar bein|g presse|
|00003410| 64 20 2a 2f 0d 09 73 68 | 6f 72 74 20 52 65 66 43 |d */..sh|ort RefC|
|00003420| 6f 6e 3b 0d 0d 09 52 65 | 66 43 6f 6e 20 3d 20 47 |on;...Re|fCon = G|
|00003430| 65 74 43 52 65 66 43 6f | 6e 20 28 74 68 65 43 6f |etCRefCo|n (theCo|
|00003440| 6e 74 72 6f 6c 29 3b 09 | 2f 2a 20 67 65 74 20 63 |ntrol);.|/* get c|
|00003450| 6f 6e 74 72 6f 6c 20 72 | 65 66 63 6f 6e 20 2a 2f |ontrol r|efcon */|
|00003460| 0d 0d 09 73 77 69 74 63 | 68 20 28 52 65 66 43 6f |...switc|h (RefCo|
|00003470| 6e 29 09 09 09 2f 2a 20 | 53 65 6c 65 63 74 20 63 |n).../* |Select c|
|00003480| 6f 72 72 65 63 74 20 73 | 63 72 6f 6c 6c 62 61 72 |orrect s|crollbar|
|00003490| 20 2a 2f 0d 09 7b 0d 09 | 09 63 61 73 65 20 49 5f | */..{..|.case I_|
|000034a0| 56 65 72 74 5f 53 63 72 | 6f 6c 6c 5f 62 61 72 3a |Vert_Scr|oll_bar:|
|000034b0| 0d 09 09 09 48 61 6e 64 | 6c 65 56 53 63 72 6f 6c |....Hand|leVScrol|
|000034c0| 6c 42 61 72 20 28 63 6f | 64 65 2c 20 31 2c 20 31 |lBar (co|de, 1, 1|
|000034d0| 30 30 2c 20 31 2c 20 31 | 30 2c 20 74 68 65 43 6f |00, 1, 1|0, theCo|
|000034e0| 6e 74 72 6f 6c 2c 20 6d | 79 50 74 29 3b 0d 09 09 |ntrol, m|yPt);...|
|000034f0| 09 73 72 63 5f 63 68 61 | 6e 67 65 64 20 3d 20 54 |.src_cha|nged = T|
|00003500| 52 55 45 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 0d |RUE;....|break;..|
|00003510| 09 09 63 61 73 65 20 49 | 5f 48 6f 72 69 7a 5f 53 |..case I|_Horiz_S|
|00003520| 63 72 6f 6c 6c 5f 62 61 | 72 3a 0d 09 09 09 48 61 |croll_ba|r:....Ha|
|00003530| 6e 64 6c 65 48 53 63 72 | 6f 6c 6c 42 61 72 20 28 |ndleHScr|ollBar (|
|00003540| 63 6f 64 65 2c 20 31 2c | 20 31 30 30 2c 20 31 2c |code, 1,| 100, 1,|
|00003550| 20 31 30 2c 20 74 68 65 | 43 6f 6e 74 72 6f 6c 2c | 10, the|Control,|
|00003560| 20 6d 79 50 74 29 3b 0d | 09 09 09 73 72 63 5f 63 | myPt);.|...src_c|
|00003570| 68 61 6e 67 65 64 20 3d | 20 54 52 55 45 3b 0d 09 |hanged =| TRUE;..|
|00003580| 09 09 62 72 65 61 6b 3b | 0d 0d 09 09 64 65 66 61 |..break;|....defa|
|00003590| 75 6c 74 3a 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |ult:....|break;..|
|000035a0| 7d 09 09 09 09 09 2f 2a | 20 65 6e 64 20 6f 66 20 |}...../*| end of |
|000035b0| 73 77 69 74 63 68 20 2a | 2f 0d 7d 0d 0d 2f 2a 20 |switch *|/.}../* |
|000035c0| 48 61 6e 64 6c 65 20 61 | 20 53 63 72 6f 6c 6c 42 |Handle a| ScrollB|
|000035d0| 61 72 20 62 65 69 6e 67 | 20 70 72 65 73 73 65 64 |ar being| pressed|
|000035e0| 20 2a 2f 0d 0d 2f 2a 20 | 3d 3d 3d 3d 3d 3d 3d 3d | */../* |========|
|000035f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003600| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 20 2a 2f 0d 0d 2f 2a |========|= */../*|
|00003610| 20 4f 70 65 6e 20 6f 75 | 72 20 77 69 6e 64 6f 77 | Open ou|r window|
|00003620| 20 61 6e 64 20 64 72 61 | 77 20 65 76 65 72 79 74 | and dra|w everyt|
|00003630| 68 69 6e 67 20 2a 2f 0d | 76 6f 69 64 20 4f 70 65 |hing */.|void Ope|
|00003640| 6e 5f 66 6c 6f 75 72 69 | 6e 65 20 28 29 0d 7b 0d |n_flouri|ne ().{.|
|00003650| 09 52 65 63 74 20 74 65 | 6d 70 52 65 63 74 3b 0d |.Rect te|mpRect;.|
|00003660| 0d 09 69 66 20 28 66 6c | 6f 75 72 69 6e 65 5f 57 |..if (fl|ourine_W|
|00003670| 69 6e 64 6f 77 20 3d 3d | 20 4e 49 4c 29 0d 09 7b |indow ==| NIL)..{|
|00003680| 0d 09 09 2f 2a 20 66 6c | 6f 75 72 69 6e 65 5f 57 |.../* fl|ourine_W|
|00003690| 69 6e 64 6f 77 20 3d 20 | 28 57 69 6e 64 6f 77 50 |indow = |(WindowP|
|000036a0| 74 72 29 20 47 65 74 4e | 65 77 43 57 69 6e 64 6f |tr) GetN|ewCWindo|
|000036b0| 77 20 28 39 2c 20 4e 49 | 4c 2c 20 28 57 69 6e 64 |w (9, NI|L, (Wind|
|000036c0| 6f 77 50 74 72 29 20 2d | 20 31 29 3b 09 2d 2d 20 |owPtr) -| 1);.-- |
|000036d0| 47 65 74 20 74 68 65 20 | 77 2a 2f 0d 0d 09 09 74 |Get the |w*/....t|
|000036e0| 65 6d 70 52 65 63 74 2e | 74 6f 70 20 3d 20 31 33 |empRect.|top = 13|
|000036f0| 39 3b 0d 09 09 74 65 6d | 70 52 65 63 74 2e 62 6f |9;...tem|pRect.bo|
|00003700| 74 74 6f 6d 20 3d 20 33 | 33 34 3b 0d 09 09 74 65 |ttom = 3|34;...te|
|00003710| 6d 70 52 65 63 74 2e 6c | 65 66 74 20 3d 20 32 30 |mpRect.l|eft = 20|
|00003720| 31 3b 0d 09 09 74 65 6d | 70 52 65 63 74 2e 72 69 |1;...tem|pRect.ri|
|00003730| 67 68 74 20 3d 20 33 39 | 32 3b 0d 09 09 66 6c 6f |ght = 39|2;...flo|
|00003740| 75 72 69 6e 65 5f 57 69 | 6e 64 6f 77 20 3d 20 28 |urine_Wi|ndow = (|
|00003750| 57 69 6e 64 6f 77 50 74 | 72 29 20 4e 65 77 43 57 |WindowPt|r) NewCW|
|00003760| 69 6e 64 6f 77 28 20 28 | 50 74 72 29 4e 49 4c 2c |indow( (|Ptr)NIL,|
|00003770| 20 26 74 65 6d 70 52 65 | 63 74 2c 20 22 5c 70 46 | &tempRe|ct, "\pF|
|00003780| 6c 6f 75 72 69 6e 65 22 | 2c 20 0d 09 09 09 28 42 |lourine"|, ....(B|
|00003790| 6f 6f 6c 65 61 6e 29 20 | 74 72 75 65 2c 20 38 2c |oolean) |true, 8,|
|000037a0| 20 28 57 69 6e 64 6f 77 | 50 74 72 29 2d 31 2c 20 | (Window|Ptr)-1, |
|000037b0| 28 42 6f 6f 6c 65 61 6e | 29 66 61 6c 73 65 2c 20 |(Boolean|)false, |
|000037c0| 39 4c 29 3b 0d 0d 09 09 | 2f 2a 20 4d 6f 76 65 57 |9L);....|/* MoveW|
|000037d0| 69 6e 64 6f 77 20 28 66 | 6c 6f 75 72 69 6e 65 5f |indow (f|lourine_|
|000037e0| 57 69 6e 64 6f 77 2c 20 | 74 65 6d 70 52 65 63 74 |Window, |tempRect|
|000037f0| 2e 6c 65 66 74 2c 20 74 | 65 6d 70 52 65 63 74 2e |.left, t|empRect.|
|00003800| 74 6f 70 2c 20 54 52 55 | 45 29 3b 20 2a 2f 0d 0d |top, TRU|E); */..|
|00003810| 09 09 53 65 74 50 6f 72 | 74 20 28 66 6c 6f 75 72 |..SetPor|t (flour|
|00003820| 69 6e 65 5f 57 69 6e 64 | 6f 77 29 3b 0d 0d 09 09 |ine_Wind|ow);....|
|00003830| 2f 2a 20 20 4d 61 6b 65 | 20 61 20 73 63 72 6f 6c |/* Make| a scrol|
|00003840| 6c 20 62 61 72 2c 20 56 | 65 72 74 20 53 63 72 6f |l bar, V|ert Scro|
|00003850| 6c 6c 20 62 61 72 20 20 | 20 2a 2f 0d 09 09 53 63 |ll bar | */...Sc|
|00003860| 72 6f 6c 6c 56 48 61 6e | 64 6c 65 20 3d 20 47 65 |rollVHan|dle = Ge|
|00003870| 74 4e 65 77 43 6f 6e 74 | 72 6f 6c 20 28 49 5f 56 |tNewCont|rol (I_V|
|00003880| 65 72 74 5f 53 63 72 6f | 6c 6c 5f 62 61 72 2c 20 |ert_Scro|ll_bar, |
|00003890| 66 6c 6f 75 72 69 6e 65 | 5f 57 69 6e 64 6f 77 29 |flourine|_Window)|
|000038a0| 3b 0d 0d 09 09 2f 2a 20 | 20 4d 61 6b 65 20 61 20 |;..../* | Make a |
|000038b0| 73 63 72 6f 6c 6c 20 62 | 61 72 2c 20 48 6f 72 69 |scroll b|ar, Hori|
|000038c0| 7a 20 53 63 72 6f 6c 6c | 20 62 61 72 20 20 20 2a |z Scroll| bar *|
|000038d0| 2f 0d 0d 09 09 53 63 72 | 6f 6c 6c 48 48 61 6e 64 |/....Scr|ollHHand|
|000038e0| 6c 65 20 3d 20 47 65 74 | 4e 65 77 43 6f 6e 74 72 |le = Get|NewContr|
|000038f0| 6f 6c 20 28 49 5f 48 6f | 72 69 7a 5f 53 63 72 6f |ol (I_Ho|riz_Scro|
|00003900| 6c 6c 5f 62 61 72 2c 20 | 66 6c 6f 75 72 69 6e 65 |ll_bar, |flourine|
|00003910| 5f 57 69 6e 64 6f 77 29 | 3b 0d 0d 09 09 53 68 6f |_Window)|;....Sho|
|00003920| 77 57 69 6e 64 6f 77 20 | 28 66 6c 6f 75 72 69 6e |wWindow |(flourin|
|00003930| 65 5f 57 69 6e 64 6f 77 | 29 3b 0d 09 09 53 65 6c |e_Window|);...Sel|
|00003940| 65 63 74 57 69 6e 64 6f | 77 20 28 66 6c 6f 75 72 |ectWindo|w (flour|
|00003950| 69 6e 65 5f 57 69 6e 64 | 6f 77 29 3b 0d 0d 09 09 |ine_Wind|ow);....|
|00003960| 2f 2a 20 53 65 74 50 61 | 6c 65 74 74 65 28 20 66 |/* SetPa|lette( f|
|00003970| 6c 6f 75 72 69 6e 65 5f | 57 69 6e 64 6f 77 2c 20 |lourine_|Window, |
|00003980| 6d 79 70 61 6c 65 74 74 | 65 2c 20 74 72 75 65 29 |mypalett|e, true)|
|00003990| 3b 20 2a 2f 0d 09 09 2f | 2a 20 52 47 42 42 61 63 |; */.../|* RGBBac|
|000039a0| 6b 43 6f 6c 6f 72 28 26 | 77 68 69 74 65 52 47 42 |kColor(&|whiteRGB|
|000039b0| 29 3b 20 2a 2f 0d 09 09 | 2f 2a 20 52 47 42 46 6f |); */...|/* RGBFo|
|000039c0| 72 65 43 6f 6c 6f 72 28 | 26 42 6c 61 63 6b 52 47 |reColor(|&BlackRG|
|000039d0| 42 29 3b 20 2d 2d 20 63 | 6f 70 79 62 69 74 73 20 |B); -- c|opybits |
|000039e0| 75 73 75 61 6c 6c 79 20 | 65 78 70 65 63 74 20 62 |usually |expect b|
|000039f0| 6c 61 63 6b 20 66 6f 72 | 65 20 61 6e 64 20 77 68 |lack for|e and wh|
|00003a00| 69 74 65 20 62 61 63 6b | 20 2a 2f 0d 09 09 2f 2a |ite back| */.../*|
|00003a10| 20 4f 70 43 6f 6c 6f 72 | 28 26 67 72 61 79 52 47 | OpColor|(&grayRG|
|00003a20| 42 29 3b 20 2a 2f 0d 0d | 09 09 52 65 73 69 7a 65 |B); */..|..Resize|
|00003a30| 64 5f 66 6c 6f 75 72 69 | 6e 65 20 28 66 6c 6f 75 |d_flouri|ne (flou|
|00003a40| 72 69 6e 65 5f 57 69 6e | 64 6f 77 29 3b 0d 09 7d |rine_Win|dow);..}|
|00003a50| 0d 09 65 6c 73 65 0d 09 | 7b 0d 09 09 53 65 6c 65 |..else..|{...Sele|
|00003a60| 63 74 57 69 6e 64 6f 77 | 20 28 66 6c 6f 75 72 69 |ctWindow| (flouri|
|00003a70| 6e 65 5f 57 69 6e 64 6f | 77 29 3b 09 2f 2a 20 41 |ne_Windo|w);./* A|
|00003a80| 6c 72 65 61 64 79 20 6f | 70 65 6e 2c 20 73 6f 20 |lready o|pen, so |
|00003a90| 73 68 6f 77 20 69 74 20 | 2a 2f 0d 09 7d 0d 7d 0d |show it |*/..}.}.|
|00003aa0| 0d 2f 2a 20 45 6e 64 20 | 6f 66 20 6f 70 65 6e 20 |./* End |of open |
|00003ab0| 66 75 6e 63 74 69 6f 6e | 20 2a 2f 0d 0d 2f 2a 20 |function| */../* |
|00003ac0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ad0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ae0| 3d 20 2a 2f 0d 0d 2f 2a | 20 48 61 6e 64 6c 65 20 |= */../*| Handle |
|00003af0| 61 63 74 69 6f 6e 20 74 | 6f 20 6f 75 72 20 77 69 |action t|o our wi|
|00003b00| 6e 64 6f 77 2c 20 6c 69 | 6b 65 20 63 6f 6e 74 72 |ndow, li|ke contr|
|00003b10| 6f 6c 73 20 2a 2f 0d 76 | 6f 69 64 20 44 6f 5f 66 |ols */.v|oid Do_f|
|00003b20| 6c 6f 75 72 69 6e 65 20 | 28 6d 79 45 76 65 6e 74 |lourine |(myEvent|
|00003b30| 29 0d 09 45 76 65 6e 74 | 52 65 63 6f 72 64 20 2a |)..Event|Record *|
|00003b40| 6d 79 45 76 65 6e 74 3b | 0d 7b 0d 09 73 68 6f 72 |myEvent;|.{..shor|
|00003b50| 74 20 52 65 66 43 6f 6e | 3b 09 09 09 2f 2a 20 52 |t RefCon|;.../* R|
|00003b60| 65 66 43 6f 6e 20 66 6f | 72 20 63 6f 6e 74 72 6f |efCon fo|r contro|
|00003b70| 6c 73 20 2a 2f 0d 09 73 | 68 6f 72 74 20 63 6f 64 |ls */..s|hort cod|
|00003b80| 65 3b 09 09 09 09 2f 2a | 20 4c 6f 63 61 74 69 6f |e;..../*| Locatio|
|00003b90| 6e 20 6f 66 20 65 76 65 | 6e 74 20 69 6e 20 77 69 |n of eve|nt in wi|
|00003ba0| 6e 64 6f 77 20 6f 72 20 | 63 6f 6e 74 72 6f 6c 73 |ndow or |controls|
|00003bb0| 20 2a 2f 0d 09 73 68 6f | 72 74 20 74 68 65 56 61 | */..sho|rt theVa|
|00003bc0| 6c 75 65 3b 09 09 09 2f | 2a 20 43 75 72 72 65 6e |lue;.../|* Curren|
|00003bd0| 74 20 76 61 6c 75 65 20 | 6f 66 20 61 20 63 6f 6e |t value |of a con|
|00003be0| 74 72 6f 6c 20 2a 2f 0d | 09 57 69 6e 64 6f 77 50 |trol */.|.WindowP|
|00003bf0| 74 72 20 77 68 69 63 68 | 57 69 6e 64 6f 77 3b 0d |tr which|Window;.|
|00003c00| 09 50 6f 69 6e 74 20 6d | 79 50 74 3b 0d 09 43 6f |.Point m|yPt;..Co|
|00003c10| 6e 74 72 6f 6c 48 61 6e | 64 6c 65 20 74 68 65 43 |ntrolHan|dle theC|
|00003c20| 6f 6e 74 72 6f 6c 3b 0d | 09 57 69 6e 64 6f 77 50 |ontrol;.|.WindowP|
|00003c30| 74 72 20 53 61 76 65 50 | 6f 72 74 3b 0d 0d 09 2f |tr SaveP|ort;.../|
|00003c40| 2a 20 53 74 61 72 74 20 | 6f 66 20 57 69 6e 64 6f |* Start |of Windo|
|00003c50| 77 20 68 61 6e 64 6c 65 | 72 20 2a 2f 0d 09 69 66 |w handle|r */..if|
|00003c60| 20 28 66 6c 6f 75 72 69 | 6e 65 5f 57 69 6e 64 6f | (flouri|ne_Windo|
|00003c70| 77 20 21 3d 20 4e 49 4c | 29 0d 09 7b 0d 09 09 47 |w != NIL|)..{...G|
|00003c80| 65 74 50 6f 72 74 20 28 | 26 53 61 76 65 50 6f 72 |etPort (|&SavePor|
|00003c90| 74 29 3b 0d 09 09 53 65 | 74 50 6f 72 74 28 66 6c |t);...Se|tPort(fl|
|00003ca0| 6f 75 72 69 6e 65 5f 57 | 69 6e 64 6f 77 29 3b 0d |ourine_W|indow);.|
|00003cb0| 09 09 0d 09 09 53 65 74 | 4f 72 69 67 69 6e 28 30 |.....Set|Origin(0|
|00003cc0| 2c 20 30 29 3b 0d 0d 09 | 09 63 6f 64 65 20 3d 20 |, 0);...|.code = |
|00003cd0| 46 69 6e 64 57 69 6e 64 | 6f 77 20 28 6d 79 45 76 |FindWind|ow (myEv|
|00003ce0| 65 6e 74 2d 3e 77 68 65 | 72 65 2c 20 26 77 68 69 |ent->whe|re, &whi|
|00003cf0| 63 68 57 69 6e 64 6f 77 | 29 3b 0d 0d 09 09 69 66 |chWindow|);....if|
|00003d00| 20 28 28 6d 79 45 76 65 | 6e 74 2d 3e 77 68 61 74 | ((myEve|nt->what|
|00003d10| 20 3d 3d 20 6d 6f 75 73 | 65 44 6f 77 6e 29 20 26 | == mous|eDown) &|
|00003d20| 26 20 28 66 6c 6f 75 72 | 69 6e 65 5f 57 69 6e 64 |& (flour|ine_Wind|
|00003d30| 6f 77 20 3d 3d 20 77 68 | 69 63 68 57 69 6e 64 6f |ow == wh|ichWindo|
|00003d40| 77 29 29 0d 09 09 7b 0d | 09 09 09 6d 79 50 74 20 |w))...{.|...myPt |
|00003d50| 3d 20 6d 79 45 76 65 6e | 74 2d 3e 77 68 65 72 65 |= myEven|t->where|
|00003d60| 3b 09 2f 2a 20 47 65 74 | 20 6d 6f 75 73 65 20 70 |;./* Get| mouse p|
|00003d70| 6f 73 69 74 69 6f 6e 20 | 2a 2f 0d 09 09 09 47 6c |osition |*/....Gl|
|00003d80| 6f 62 61 6c 54 6f 4c 6f | 63 61 6c 20 28 26 6d 79 |obalToLo|cal (&my|
|00003d90| 50 74 29 3b 09 2f 2a 20 | 4d 61 6b 65 20 69 74 20 |Pt);./* |Make it |
|00003da0| 72 65 6c 61 74 69 76 65 | 20 2a 2f 0d 09 09 7d 0d |relative| */...}.|
|00003db0| 0d 09 09 69 66 20 28 28 | 66 6c 6f 75 72 69 6e 65 |...if ((|flourine|
|00003dc0| 5f 57 69 6e 64 6f 77 20 | 3d 3d 20 77 68 69 63 68 |_Window |== which|
|00003dd0| 57 69 6e 64 6f 77 29 20 | 26 26 20 28 63 6f 64 65 |Window) |&& (code|
|00003de0| 20 3d 3d 20 69 6e 43 6f | 6e 74 65 6e 74 29 29 0d | == inCo|ntent)).|
|00003df0| 09 09 7b 0d 0d 09 09 09 | 63 6f 64 65 20 3d 20 46 |..{.....|code = F|
|00003e00| 69 6e 64 43 6f 6e 74 72 | 6f 6c 20 28 6d 79 50 74 |indContr|ol (myPt|
|00003e10| 2c 20 77 68 69 63 68 57 | 69 6e 64 6f 77 2c 20 26 |, whichW|indow, &|
|00003e20| 74 68 65 43 6f 6e 74 72 | 6f 6c 29 3b 0d 0d 09 09 |theContr|ol);....|
|00003e30| 09 69 66 20 28 28 63 6f | 64 65 20 3d 3d 20 69 6e |.if ((co|de == in|
|00003e40| 55 70 42 75 74 74 6f 6e | 29 20 7c 7c 20 28 63 6f |UpButton|) || (co|
|00003e50| 64 65 20 3d 3d 20 69 6e | 44 6f 77 6e 42 75 74 74 |de == in|DownButt|
|00003e60| 6f 6e 29 0d 09 09 09 09 | 7c 7c 20 28 63 6f 64 65 |on).....||| (code|
|00003e70| 20 3d 3d 20 69 6e 54 68 | 75 6d 62 29 20 7c 7c 20 | == inTh|umb) || |
|00003e80| 28 63 6f 64 65 20 3d 3d | 20 69 6e 50 61 67 65 44 |(code ==| inPageD|
|00003e90| 6f 77 6e 29 0d 09 09 09 | 09 7c 7c 20 28 63 6f 64 |own)....|.|| (cod|
|00003ea0| 65 20 3d 3d 20 69 6e 50 | 61 67 65 55 70 29 29 0d |e == inP|ageUp)).|
|00003eb0| 09 09 09 09 44 6f 5f 41 | 5f 53 63 72 6f 6c 6c 42 |....Do_A|_ScrollB|
|00003ec0| 61 72 20 28 63 6f 64 65 | 2c 20 74 68 65 43 6f 6e |ar (code|, theCon|
|00003ed0| 74 72 6f 6c 2c 20 6d 79 | 50 74 29 3b 0d 09 09 09 |trol, my|Pt);....|
|00003ee0| 69 66 20 28 63 6f 64 65 | 20 21 3d 20 30 29 09 2f |if (code| != 0)./|
|00003ef0| 2a 20 43 68 65 63 6b 20 | 74 79 70 65 20 6f 66 20 |* Check |type of |
|00003f00| 63 6f 6e 74 72 6f 6c 20 | 2a 2f 0d 09 09 09 09 63 |control |*/.....c|
|00003f10| 6f 64 65 20 3d 20 54 72 | 61 63 6b 43 6f 6e 74 72 |ode = Tr|ackContr|
|00003f20| 6f 6c 20 28 74 68 65 43 | 6f 6e 74 72 6f 6c 2c 20 |ol (theC|ontrol, |
|00003f30| 6d 79 50 74 2c 20 4e 49 | 4c 29 3b 0d 0d 09 09 7d |myPt, NI|L);....}|
|00003f40| 0d 09 7d 0d 09 53 65 74 | 50 6f 72 74 28 53 61 76 |..}..Set|Port(Sav|
|00003f50| 65 50 6f 72 74 29 3b 0d | 7d 0d 0d 2f 2a 20 45 6e |ePort);.|}../* En|
|00003f60| 64 20 6f 66 20 66 75 6e | 63 74 69 6f 6e 20 2a 2f |d of fun|ction */|
|00003f70| 0d 0d 2f 2a 20 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |../* ===|========|
|00003f80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f90| 3d 3d 3d 3d 3d 3d 20 2a | 2f 0d 0d 76 6f 69 64 20 |====== *|/..void |
|00003fa0| 72 65 61 64 5f 66 6c 6f | 75 72 69 6e 65 28 29 0d |read_flo|urine().|
|00003fb0| 2f 2a 20 72 65 61 64 73 | 20 61 20 50 49 43 54 20 |/* reads| a PICT |
|00003fc0| 66 69 6c 65 20 61 6e 64 | 20 64 69 73 70 6c 61 79 |file and| display|
|00003fd0| 73 20 69 74 20 69 6e 20 | 66 6c 6f 75 72 69 6e 65 |s it in |flourine|
|00003fe0| 20 77 69 6e 64 6f 77 20 | 2a 2f 0d 7b 0d 09 73 68 | window |*/.{..sh|
|00003ff0| 6f 72 74 20 77 69 64 74 | 68 2c 20 68 65 69 67 68 |ort widt|h, heigh|
|00004000| 74 3b 0d 2f 2a 0d 09 70 | 75 74 20 75 70 20 6f 70 |t;./*..p|ut up op|
|00004010| 65 6e 2d 66 69 6c 65 20 | 64 69 61 6c 6f 67 0d 09 |en-file |dialog..|
|00004020| 69 66 20 6e 6f 74 20 63 | 61 6e 63 65 6c 6c 65 64 |if not c|ancelled|
|00004030| 20 74 68 65 6e 0d 09 09 | 63 6c 65 61 72 20 6f 75 | then...|clear ou|
|00004040| 74 20 63 75 72 72 65 6e | 74 20 73 6f 75 72 63 65 |t curren|t source|
|00004050| 5f 31 20 70 69 63 74 75 | 72 65 0d 09 09 6f 70 65 |_1 pictu|re...ope|
|00004060| 6e 20 73 65 6c 65 63 74 | 65 64 20 66 69 6c 65 0d |n select|ed file.|
|00004070| 09 09 73 6b 69 70 20 68 | 65 61 64 65 72 20 35 31 |..skip h|eader 51|
|00004080| 32 20 62 79 74 65 73 0d | 09 09 72 65 61 64 20 74 |2 bytes.|..read t|
|00004090| 6f 20 66 69 6e 64 20 6f | 75 74 20 68 6f 77 20 62 |o find o|ut how b|
|000040a0| 69 67 20 74 68 65 20 70 | 69 63 74 75 72 65 20 69 |ig the p|icture i|
|000040b0| 73 20 67 6f 69 6e 67 20 | 74 6f 20 62 65 2c 20 61 |s going |to be, a|
|000040c0| 6e 64 20 74 68 65 6e 20 | 72 65 77 69 6e 64 20 61 |nd then |rewind a|
|000040d0| 20 62 69 74 0d 09 09 61 | 6c 6c 6f 63 61 74 65 20 | bit...a|llocate |
|000040e0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 68 61 6e 64 |appropri|ate hand|
|000040f0| 6c 65 0d 09 09 72 65 61 | 64 20 66 69 6c 65 20 69 |le...rea|d file i|
|00004100| 6e 74 6f 20 74 68 65 20 | 68 61 6e 64 6c 65 0d 09 |nto the |handle..|
|00004110| 09 75 73 65 20 74 68 65 | 20 70 69 63 74 20 46 72 |.use the| pict Fr|
|00004120| 61 6d 65 20 69 6e 20 64 | 65 74 65 72 6d 69 6e 69 |ame in d|etermini|
|00004130| 6e 67 20 68 6f 77 20 62 | 69 67 20 74 6f 20 63 72 |ng how b|ig to cr|
|00004140| 65 61 74 65 20 74 68 65 | 20 70 69 78 6d 61 70 20 |eate the| pixmap |
|00004150| 66 6f 72 20 73 6f 75 72 | 63 65 31 0d 09 09 63 72 |for sour|ce1...cr|
|00004160| 65 61 74 65 20 70 69 78 | 6d 61 70 0d 09 09 63 6f |eate pix|map...co|
|00004170| 70 79 20 74 68 65 20 50 | 49 43 54 20 69 6e 74 6f |py the P|ICT into|
|00004180| 20 74 68 65 20 70 69 78 | 6d 61 70 0d 09 65 6e 64 | the pix|map..end|
|00004190| 20 69 66 0d 2a 2f 0d 09 | 47 44 48 61 6e 64 6c 65 | if.*/..|GDHandle|
|000041a0| 20 74 68 65 4d 61 78 44 | 65 76 69 63 65 3b 0d 09 | theMaxD|evice;..|
|000041b0| 50 6f 69 6e 74 20 70 6c | 61 63 65 3b 0d 09 50 6f |Point pl|ace;..Po|
|000041c0| 69 6e 74 20 74 65 6d 70 | 50 3b 0d 09 52 65 63 74 |int temp|P;..Rect|
|000041d0| 20 67 6c 6f 62 52 65 63 | 74 3b 0d 09 53 46 52 65 | globRec|t;..SFRe|
|000041e0| 70 6c 79 20 74 68 65 52 | 65 70 6c 79 3b 0d 09 53 |ply theR|eply;..S|
|000041f0| 46 54 79 70 65 4c 69 73 | 74 20 74 68 65 4c 69 73 |FTypeLis|t theLis|
|00004200| 74 3b 0d 09 73 68 6f 72 | 74 20 69 78 2c 20 69 79 |t;..shor|t ix, iy|
|00004210| 3b 0d 0d 09 70 6c 61 63 | 65 2e 68 20 3d 20 36 30 |;...plac|e.h = 60|
|00004220| 3b 0d 09 70 6c 61 63 65 | 2e 76 20 3d 20 36 30 3b |;..place|.v = 60;|
|00004230| 0d 09 74 68 65 4c 69 73 | 74 5b 30 5d 20 3d 20 27 |..theLis|t[0] = '|
|00004240| 50 49 43 54 27 3b 0d 0d | 09 53 46 47 65 74 46 69 |PICT';..|.SFGetFi|
|00004250| 6c 65 20 28 20 70 6c 61 | 63 65 2c 20 22 5c 70 4f |le ( pla|ce, "\pO|
|00004260| 70 65 6e 20 61 20 47 72 | 61 79 53 63 61 6c 65 20 |pen a Gr|ayScale |
|00004270| 50 49 43 54 20 66 69 6c | 65 22 2c 20 4e 49 4c 2c |PICT fil|e", NIL,|
|00004280| 20 31 2c 20 74 68 65 4c | 69 73 74 2c 20 4e 49 4c | 1, theL|ist, NIL|
|00004290| 2c 20 26 74 68 65 52 65 | 70 6c 79 20 29 3b 0d 0d |, &theRe|ply );..|
|000042a0| 09 53 65 74 50 6f 72 74 | 28 20 66 6c 6f 75 72 69 |.SetPort|( flouri|
|000042b0| 6e 65 5f 57 69 6e 64 6f | 77 20 29 3b 0d 0d 09 69 |ne_Windo|w );...i|
|000042c0| 66 20 28 20 74 68 65 52 | 65 70 6c 79 2e 67 6f 6f |f ( theR|eply.goo|
|000042d0| 64 20 21 3d 20 30 20 29 | 0d 09 7b 0d 09 09 69 66 |d != 0 )|..{...if|
|000042e0| 20 28 20 66 6c 6f 75 72 | 69 6e 65 5f 70 69 63 20 | ( flour|ine_pic |
|000042f0| 21 3d 20 4e 49 4c 20 29 | 0d 09 09 7b 0d 09 09 09 |!= NIL )|...{....|
|00004300| 44 69 73 70 6f 73 48 61 | 6e 64 6c 65 28 20 28 48 |DisposHa|ndle( (H|
|00004310| 61 6e 64 6c 65 29 20 66 | 6c 6f 75 72 69 6e 65 5f |andle) f|lourine_|
|00004320| 70 69 63 20 29 3b 0d 09 | 09 7d 0d 09 09 69 66 20 |pic );..|.}...if |
|00004330| 28 20 47 65 74 50 69 63 | 28 20 74 68 65 52 65 70 |( GetPic|( theRep|
|00004340| 6c 79 2c 20 26 66 6c 6f | 75 72 69 6e 65 5f 70 69 |ly, &flo|urine_pi|
|00004350| 63 20 29 20 29 0d 09 09 | 7b 0d 09 09 09 66 6c 6f |c ) )...|{....flo|
|00004360| 75 72 69 6e 65 5f 72 65 | 63 74 20 3d 20 28 2a 2a |urine_re|ct = (**|
|00004370| 66 6c 6f 75 72 69 6e 65 | 5f 70 69 63 29 2e 70 69 |flourine|_pic).pi|
|00004380| 63 46 72 61 6d 65 3b 0d | 09 09 09 2f 2a 20 63 6f |cFrame;.|.../* co|
|00004390| 70 79 20 74 68 61 74 20 | 50 49 43 54 20 74 6f 20 |py that |PICT to |
|000043a0| 6f 75 72 20 70 69 78 6d | 61 70 2c 20 63 6f 6e 76 |our pixm|ap, conv|
|000043b0| 65 72 74 69 6e 67 20 69 | 74 20 74 6f 20 75 73 65 |erting i|t to use|
|000043c0| 20 74 68 65 20 46 6c 6f | 75 72 69 6e 65 20 63 6f | the Flo|urine co|
|000043d0| 6c 6f 72 73 20 2a 2f 0d | 0d 09 09 09 68 65 69 67 |lors */.|....heig|
|000043e0| 68 74 20 3d 20 66 6c 6f | 75 72 69 6e 65 5f 72 65 |ht = flo|urine_re|
|000043f0| 63 74 2e 62 6f 74 74 6f | 6d 20 2d 20 66 6c 6f 75 |ct.botto|m - flou|
|00004400| 72 69 6e 65 5f 72 65 63 | 74 2e 74 6f 70 3b 0d 09 |rine_rec|t.top;..|
|00004410| 09 09 77 69 64 74 68 20 | 3d 20 66 6c 6f 75 72 69 |..width |= flouri|
|00004420| 6e 65 5f 72 65 63 74 2e | 72 69 67 68 74 20 2d 20 |ne_rect.|right - |
|00004430| 66 6c 6f 75 72 69 6e 65 | 5f 72 65 63 74 2e 6c 65 |flourine|_rect.le|
|00004440| 66 74 3b 0d 09 09 09 66 | 6c 6f 75 72 69 6e 65 5f |ft;....f|lourine_|
|00004450| 72 65 63 74 2e 74 6f 70 | 20 3d 20 30 3b 0d 09 09 |rect.top| = 0;...|
|00004460| 09 66 6c 6f 75 72 69 6e | 65 5f 72 65 63 74 2e 62 |.flourin|e_rect.b|
|00004470| 6f 74 74 6f 6d 20 3d 20 | 68 65 69 67 68 74 3b 0d |ottom = |height;.|
|00004480| 09 09 09 66 6c 6f 75 72 | 69 6e 65 5f 72 65 63 74 |...flour|ine_rect|
|00004490| 2e 6c 65 66 74 20 3d 20 | 30 3b 0d 09 09 09 66 6c |.left = |0;....fl|
|000044a0| 6f 75 72 69 6e 65 5f 72 | 65 63 74 2e 72 69 67 68 |ourine_r|ect.righ|
|000044b0| 74 20 3d 20 77 69 64 74 | 68 3b 0d 0d 09 09 09 74 |t = widt|h;.....t|
|000044c0| 65 6d 70 50 2e 76 20 3d | 20 66 6c 6f 75 72 69 6e |empP.v =| flourin|
|000044d0| 65 5f 57 69 6e 64 6f 77 | 2d 3e 70 6f 72 74 52 65 |e_Window|->portRe|
|000044e0| 63 74 2e 74 6f 70 3b 0d | 09 09 09 74 65 6d 70 50 |ct.top;.|...tempP|
|000044f0| 2e 68 20 3d 20 66 6c 6f | 75 72 69 6e 65 5f 57 69 |.h = flo|urine_Wi|
|00004500| 6e 64 6f 77 2d 3e 70 6f | 72 74 52 65 63 74 2e 6c |ndow->po|rtRect.l|
|00004510| 65 66 74 3b 0d 09 09 09 | 4c 6f 63 61 6c 54 6f 47 |eft;....|LocalToG|
|00004520| 6c 6f 62 61 6c 28 26 74 | 65 6d 70 50 29 3b 0d 09 |lobal(&t|empP);..|
|00004530| 09 09 67 6c 6f 62 52 65 | 63 74 2e 74 6f 70 20 3d |..globRe|ct.top =|
|00004540| 20 74 65 6d 70 50 2e 76 | 3b 0d 09 09 09 67 6c 6f | tempP.v|;....glo|
|00004550| 62 52 65 63 74 2e 6c 65 | 66 74 20 3d 20 74 65 6d |bRect.le|ft = tem|
|00004560| 70 50 2e 68 3b 0d 0d 09 | 09 09 74 65 6d 70 50 2e |pP.h;...|..tempP.|
|00004570| 76 20 3d 20 66 6c 6f 75 | 72 69 6e 65 5f 57 69 6e |v = flou|rine_Win|
|00004580| 64 6f 77 2d 3e 70 6f 72 | 74 52 65 63 74 2e 62 6f |dow->por|tRect.bo|
|00004590| 74 74 6f 6d 3b 0d 09 09 | 09 74 65 6d 70 50 2e 68 |ttom;...|.tempP.h|
|000045a0| 20 3d 20 66 6c 6f 75 72 | 69 6e 65 5f 57 69 6e 64 | = flour|ine_Wind|
|000045b0| 6f 77 2d 3e 70 6f 72 74 | 52 65 63 74 2e 72 69 67 |ow->port|Rect.rig|
|000045c0| 68 74 3b 0d 09 09 09 4c | 6f 63 61 6c 54 6f 47 6c |ht;....L|ocalToGl|
|000045d0| 6f 62 61 6c 28 26 74 65 | 6d 70 50 29 3b 20 0d 09 |obal(&te|mpP); ..|
|000045e0| 09 09 67 6c 6f 62 52 65 | 63 74 2e 62 6f 74 74 6f |..globRe|ct.botto|
|000045f0| 6d 20 3d 20 74 65 6d 70 | 50 2e 76 3b 0d 09 09 09 |m = temp|P.v;....|
|00004600| 67 6c 6f 62 52 65 63 74 | 2e 72 69 67 68 74 20 3d |globRect|.right =|
|00004610| 20 74 65 6d 70 50 2e 68 | 3b 0d 0d 09 09 09 74 68 | tempP.h|;.....th|
|00004620| 65 4d 61 78 44 65 76 69 | 63 65 20 3d 20 47 65 74 |eMaxDevi|ce = Get|
|00004630| 4d 61 78 44 65 76 69 63 | 65 28 26 67 6c 6f 62 52 |MaxDevic|e(&globR|
|00004640| 65 63 74 29 3b 20 2f 2a | 67 65 74 20 74 68 65 20 |ect); /*|get the |
|00004650| 6d 61 78 44 65 76 69 63 | 65 2a 2f 0d 0d 09 09 09 |maxDevic|e*/.....|
|00004660| 66 6c 6f 75 72 69 6e 65 | 5f 62 6d 61 70 20 3d 20 |flourine|_bmap = |
|00004670| 70 69 63 5f 74 6f 5f 62 | 6d 61 70 28 20 66 6c 6f |pic_to_b|map( flo|
|00004680| 75 72 69 6e 65 5f 70 69 | 63 2c 20 26 66 6c 6f 75 |urine_pi|c, &flou|
|00004690| 72 69 6e 65 5f 72 65 63 | 74 2c 20 74 68 65 4d 61 |rine_rec|t, theMa|
|000046a0| 78 44 65 76 69 63 65 20 | 29 3b 0d 0d 09 09 09 69 |xDevice |);.....i|
|000046b0| 66 20 28 20 66 6c 6f 75 | 72 69 6e 65 5f 62 6d 61 |f ( flou|rine_bma|
|000046c0| 70 20 21 3d 20 4e 49 4c | 20 29 0d 09 09 09 7b 0d |p != NIL| )....{.|
|000046d0| 09 09 09 09 44 69 73 70 | 6f 73 48 61 6e 64 6c 65 |....Disp|osHandle|
|000046e0| 28 20 66 6c 6f 75 72 69 | 6e 65 5f 70 69 63 20 29 |( flouri|ne_pic )|
|000046f0| 3b 0d 09 09 09 7d 0d 09 | 09 09 73 72 63 5f 63 68 |;....}..|..src_ch|
|00004700| 61 6e 67 65 64 20 3d 20 | 54 52 55 45 3b 0d 09 09 |anged = |TRUE;...|
|00004710| 7d 0d 09 09 65 6c 73 65 | 20 2f 2a 20 66 61 69 6c |}...else| /* fail|
|00004720| 65 64 20 74 6f 20 67 65 | 74 20 61 20 70 69 63 74 |ed to ge|t a pict|
|00004730| 20 2a 2f 0d 09 09 7b 0d | 09 09 09 63 6c 65 61 72 | */...{.|...clear|
|00004740| 5f 66 6c 6f 75 72 69 6e | 65 28 29 3b 0d 09 09 7d |_flourin|e();...}|
|00004750| 0d 09 7d 0d 09 55 70 44 | 61 74 65 5f 66 6c 6f 75 |..}..UpD|ate_flou|
|00004760| 72 69 6e 65 20 28 66 6c | 6f 75 72 69 6e 65 5f 57 |rine (fl|ourine_W|
|00004770| 69 6e 64 6f 77 29 3b 0d | 7d 0d 0d 76 6f 69 64 20 |indow);.|}..void |
|00004780| 70 61 73 74 65 5f 66 6c | 6f 75 72 69 6e 65 28 29 |paste_fl|ourine()|
|00004790| 20 2f 2a 20 21 21 21 20 | 63 68 61 6e 67 65 20 74 | /* !!! |change t|
|000047a0| 68 69 73 20 74 6f 20 75 | 73 65 20 6f 66 66 20 73 |his to u|se off s|
|000047b0| 63 72 65 65 6e 20 62 69 | 74 6d 61 70 20 2a 2f 0d |creen bi|tmap */.|
|000047c0| 2f 2a 20 70 61 73 74 65 | 20 61 20 50 49 43 54 20 |/* paste| a PICT |
|000047d0| 66 72 6f 6d 20 74 68 65 | 20 63 6c 69 70 62 6f 61 |from the| clipboa|
|000047e0| 72 64 20 61 6e 64 20 64 | 69 73 70 6c 61 79 73 20 |rd and d|isplays |
|000047f0| 69 74 20 69 6e 20 73 6f | 75 72 63 65 5f 31 20 77 |it in so|urce_1 w|
|00004800| 69 6e 64 6f 77 20 2a 2f | 0d 7b 0d 09 73 68 6f 72 |indow */|.{..shor|
|00004810| 74 20 68 65 69 67 68 74 | 2c 20 77 69 64 74 68 2c |t height|, width,|
|00004820| 20 73 69 7a 65 3b 0d 09 | 6c 6f 6e 67 20 6c 65 6e | size;..|long len|
|00004830| 67 74 68 2c 20 6f 66 66 | 73 65 74 3b 0d 2f 2a 0d |gth, off|set;./*.|
|00004840| 09 6c 6f 6f 6b 20 66 6f | 72 20 50 49 43 54 20 72 |.look fo|r PICT r|
|00004850| 65 73 6f 75 72 63 65 20 | 69 6e 20 63 6c 69 70 62 |esource |in clipb|
|00004860| 6f 61 72 64 0d 09 69 66 | 20 74 68 65 72 65 20 69 |oard..if| there i|
|00004870| 73 20 61 20 50 49 43 54 | 20 74 68 65 6e 0d 09 09 |s a PICT| then...|
|00004880| 63 6c 65 61 72 20 6f 75 | 74 20 63 75 72 72 65 6e |clear ou|t curren|
|00004890| 74 20 73 6f 75 72 63 65 | 5f 31 20 70 69 63 74 75 |t source|_1 pictu|
|000048a0| 72 65 0d 09 09 72 65 61 | 64 20 74 6f 20 66 69 6e |re...rea|d to fin|
|000048b0| 64 20 6f 75 74 20 68 6f | 77 20 62 69 67 20 74 68 |d out ho|w big th|
|000048c0| 65 20 70 69 63 74 75 72 | 65 20 69 73 20 67 6f 69 |e pictur|e is goi|
|000048d0| 6e 67 20 74 6f 20 62 65 | 2c 20 61 6e 64 20 74 68 |ng to be|, and th|
|000048e0| 65 6e 20 72 65 77 69 6e | 64 20 61 20 62 69 74 0d |en rewin|d a bit.|
|000048f0| 09 09 61 6c 6c 6f 63 61 | 74 65 20 61 70 70 72 6f |..alloca|te appro|
|00004900| 70 72 69 61 74 65 20 68 | 61 6e 64 6c 65 0d 09 09 |priate h|andle...|
|00004910| 72 65 61 64 20 70 61 73 | 74 65 20 69 6e 74 6f 20 |read pas|te into |
|00004920| 74 68 65 20 68 61 6e 64 | 6c 65 0d 09 09 75 73 65 |the hand|le...use|
|00004930| 20 74 68 65 20 70 69 63 | 74 20 46 72 61 6d 65 20 | the pic|t Frame |
|00004940| 69 6e 20 64 65 74 65 72 | 6d 69 6e 69 6e 67 20 68 |in deter|mining h|
|00004950| 6f 77 20 62 69 67 20 74 | 6f 20 63 72 65 61 74 65 |ow big t|o create|
|00004960| 20 74 68 65 20 70 69 78 | 6d 61 70 20 66 6f 72 20 | the pix|map for |
|00004970| 73 6f 75 72 63 65 31 0d | 09 09 63 72 65 61 74 65 |source1.|..create|
|00004980| 20 70 69 78 6d 61 70 0d | 09 09 63 6f 70 79 20 74 | pixmap.|..copy t|
|00004990| 68 65 20 50 49 43 54 20 | 69 6e 74 6f 20 74 68 65 |he PICT |into the|
|000049a0| 20 70 69 78 6d 61 70 0d | 09 65 6e 64 20 69 66 0d | pixmap.|.end if.|
|000049b0| 2a 2f 0d 09 66 6c 6f 75 | 72 69 6e 65 5f 70 69 63 |*/..flou|rine_pic|
|000049c0| 20 3d 20 28 50 69 63 48 | 61 6e 64 6c 65 29 20 4e | = (PicH|andle) N|
|000049d0| 65 77 48 61 6e 64 6c 65 | 28 30 29 3b 0d 09 6c 65 |ewHandle|(0);..le|
|000049e0| 6e 67 74 68 20 3d 20 47 | 65 74 53 63 72 61 70 28 |ngth = G|etScrap(|
|000049f0| 20 28 48 61 6e 64 6c 65 | 29 20 66 6c 6f 75 72 69 | (Handle|) flouri|
|00004a00| 6e 65 5f 70 69 63 2c 20 | 27 50 49 43 54 27 2c 20 |ne_pic, |'PICT', |
|00004a10| 26 6f 66 66 73 65 74 29 | 3b 0d 09 69 66 20 28 20 |&offset)|;..if ( |
|00004a20| 6c 65 6e 67 74 68 20 3e | 20 30 20 29 0d 09 7b 0d |length >| 0 )..{.|
|00004a30| 09 09 66 6c 6f 75 72 69 | 6e 65 5f 72 65 63 74 20 |..flouri|ne_rect |
|00004a40| 3d 20 28 2a 2a 66 6c 6f | 75 72 69 6e 65 5f 70 69 |= (**flo|urine_pi|
|00004a50| 63 29 2e 70 69 63 46 72 | 61 6d 65 3b 0d 09 09 77 |c).picFr|ame;...w|
|00004a60| 69 64 74 68 20 3d 20 66 | 6c 6f 75 72 69 6e 65 5f |idth = f|lourine_|
|00004a70| 72 65 63 74 2e 72 69 67 | 68 74 20 2d 20 66 6c 6f |rect.rig|ht - flo|
|00004a80| 75 72 69 6e 65 5f 72 65 | 63 74 2e 6c 65 66 74 3b |urine_re|ct.left;|
|00004a90| 0d 09 09 68 65 69 67 68 | 74 20 3d 20 66 6c 6f 75 |...heigh|t = flou|
|00004aa0| 72 69 6e 65 5f 72 65 63 | 74 2e 62 6f 74 74 6f 6d |rine_rec|t.bottom|
|00004ab0| 20 2d 20 66 6c 6f 75 72 | 69 6e 65 5f 72 65 63 74 | - flour|ine_rect|
|00004ac0| 2e 74 6f 70 3b 0d 09 09 | 73 69 7a 65 20 3d 20 77 |.top;...|size = w|
|00004ad0| 69 64 74 68 20 2a 20 68 | 65 69 67 68 74 3b 0d 09 |idth * h|eight;..|
|00004ae0| 09 2f 2a 20 61 6c 6c 6f | 63 61 74 65 20 6f 66 66 |./* allo|cate off|
|00004af0| 73 63 72 65 65 6e 2d 62 | 75 66 66 65 72 20 62 61 |screen-b|uffer ba|
|00004b00| 73 65 64 20 6f 6e 20 73 | 69 7a 65 2c 20 65 74 63 |sed on s|ize, etc|
|00004b10| 2e 2a 2f 0d 09 09 66 6c | 6f 75 72 69 6e 65 5f 72 |.*/...fl|ourine_r|
|00004b20| 65 63 74 2e 74 6f 70 20 | 3d 20 30 3b 0d 09 09 66 |ect.top |= 0;...f|
|00004b30| 6c 6f 75 72 69 6e 65 5f | 72 65 63 74 2e 6c 65 66 |lourine_|rect.lef|
|00004b40| 74 20 3d 20 30 3b 0d 09 | 09 66 6c 6f 75 72 69 6e |t = 0;..|.flourin|
|00004b50| 65 5f 72 65 63 74 2e 62 | 6f 74 74 6f 6d 20 3d 20 |e_rect.b|ottom = |
|00004b60| 68 65 69 67 68 74 3b 0d | 09 09 66 6c 6f 75 72 69 |height;.|..flouri|
|00004b70| 6e 65 5f 72 65 63 74 2e | 72 69 67 68 74 20 3d 20 |ne_rect.|right = |
|00004b80| 77 69 64 74 68 3b 0d 09 | 7d 0d 09 55 70 44 61 74 |width;..|}..UpDat|
|00004b90| 65 5f 66 6c 6f 75 72 69 | 6e 65 20 28 66 6c 6f 75 |e_flouri|ne (flou|
|00004ba0| 72 69 6e 65 5f 57 69 6e | 64 6f 77 29 3b 0d 7d 0d |rine_Win|dow);.}.|
|00004bb0| 0d 76 6f 69 64 20 63 6c | 65 61 72 5f 66 6c 6f 75 |.void cl|ear_flou|
|00004bc0| 72 69 6e 65 28 29 20 2f | 2a 20 21 21 21 20 63 68 |rine() /|* !!! ch|
|00004bd0| 61 6e 67 65 20 74 68 69 | 73 20 74 6f 20 75 73 65 |ange thi|s to use|
|00004be0| 20 6f 66 66 20 73 63 72 | 65 65 6e 20 62 69 74 6d | off scr|een bitm|
|00004bf0| 61 70 20 2a 2f 0d 2f 2a | 20 22 63 75 74 22 20 77 |ap */./*| "cut" w|
|00004c00| 69 74 68 6f 75 74 20 63 | 6c 69 70 62 6f 61 72 64 |ithout c|lipboard|
|00004c10| 20 2a 2f 0d 7b 0d 09 69 | 66 20 28 20 66 6c 6f 75 | */.{..i|f ( flou|
|00004c20| 72 69 6e 65 5f 70 69 63 | 20 21 3d 20 4e 49 4c 20 |rine_pic| != NIL |
|00004c30| 29 0d 09 7b 0d 09 09 44 | 69 73 70 6f 73 48 61 6e |)..{...D|isposHan|
|00004c40| 64 6c 65 28 20 28 48 61 | 6e 64 6c 65 29 20 66 6c |dle( (Ha|ndle) fl|
|00004c50| 6f 75 72 69 6e 65 5f 70 | 69 63 20 29 3b 0d 09 7d |ourine_p|ic );..}|
|00004c60| 0d 09 66 6c 6f 75 72 69 | 6e 65 5f 72 65 63 74 2e |..flouri|ne_rect.|
|00004c70| 74 6f 70 20 3d 20 30 3b | 0d 09 66 6c 6f 75 72 69 |top = 0;|..flouri|
|00004c80| 6e 65 5f 72 65 63 74 2e | 62 6f 74 74 6f 6d 20 3d |ne_rect.|bottom =|
|00004c90| 20 61 6c 6c 5f 6d 79 5f | 63 6f 6c 6f 72 73 3b 0d | all_my_|colors;.|
|00004ca0| 09 66 6c 6f 75 72 69 6e | 65 5f 72 65 63 74 2e 6c |.flourin|e_rect.l|
|00004cb0| 65 66 74 20 3d 20 30 3b | 0d 09 66 6c 6f 75 72 69 |eft = 0;|..flouri|
|00004cc0| 6e 65 5f 72 65 63 74 2e | 72 69 67 68 74 20 3d 20 |ne_rect.|right = |
|00004cd0| 33 30 30 3b 0d 09 55 70 | 44 61 74 65 5f 66 6c 6f |300;..Up|Date_flo|
|00004ce0| 75 72 69 6e 65 20 28 66 | 6c 6f 75 72 69 6e 65 5f |urine (f|lourine_|
|00004cf0| 57 69 6e 64 6f 77 29 3b | 0d 7d 0d 0d 76 6f 69 64 |Window);|.}..void|
|00004d00| 20 63 72 6f 70 5f 66 6c | 6f 75 72 69 6e 65 28 29 | crop_fl|ourine()|
|00004d10| 0d 7b 0d 0d 7d 0d 00 00 | 00 00 00 00 00 00 00 00 |.{..}...|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 01 00 00 00 01 3c | 00 00 00 3c 00 00 00 5a |.......<|...<...Z|
|00004d90| 48 13 e4 20 08 12 a4 1f | f0 13 e4 00 00 12 a4 00 |H.. ....|........|
|00004da0| 00 13 e4 15 40 10 04 2a | ac 0f f8 2a b4 02 a8 20 |....@..*|...*... |
|00004db0| 0a 53 6f 75 72 63 65 5f | 32 2e 63 01 02 00 00 00 |.Source_|2.c.....|
|00004dc0| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|00004dd0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 a9 80 15 cd 00 00 | 00 00 00 00 01 96 00 3f |........|.......?|
|00004e00| f8 01 c0 3f f8 03 e0 3f | f8 0f f8 3f f8 1f fc 3f |...?...?|...?...?|
|00004e10| f8 1f fc 3f f8 1f fc 1f | f0 1f fc 00 00 1f fc 00 |...?....|........|
|00004e20| 00 1f fc 15 40 1f fc 3f | ec 0f f8 3f fc 02 a8 3f |....@..?|...?...?|
|00004e30| f8 37 fc 1f f0 3f fc 0f | e0 1f fc 0f e0 0f f8 00 |.7...?..|........|
|00004e40| 00 07 f0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e50| 07 49 4e 49 54 00 01 00 | 00 00 00 7b 7a 46 6f 6e |.INIT...|...{zFon|
|00004e60| 74 2f 44 41 20 4a 75 67 | 67 6c 65 72 aa 20 50 6c |t/DA Jug|gler. Pl|
|00004e70| 75 73 20 2d 20 52 65 6c | 65 61 73 65 20 31 2e 31 |us - Rel|ease 1.1|
|00004e80| 00 00 00 2a 00 09 07 4d | 6f 6e 61 63 6f 44 00 00 |...*...M|onacoD..|
|00004e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004eb0| 00 04 00 06 00 04 00 00 | 00 02 00 00 00 00 01 00 |........|........|
|00004ec0| 00 00 01 3c 00 00 00 3c | 00 00 00 5a 00 03 fb 80 |...<...<|...Z....|
|00004ed0| 04 6a 00 00 00 1c 00 5a | 00 02 45 46 4e 54 00 00 |.j.....Z|..EFNT..|
|00004ee0| 00 1a 45 54 41 42 00 00 | 00 26 45 51 45 44 00 00 |..ETAB..|.&EQED..|
|00004ef0| 00 32 03 eb ff ff 00 00 | 00 00 00 00 00 00 03 ec |.2......|........|
|00004f00| ff ff 00 00 00 2e 00 00 | 00 00 03 eb ff ff 00 00 |........|........|
|00004f10| 00 36 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.6......|........|
|00004f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+